Skip to content
Snippets Groups Projects
  • Chris Sosnin's avatar
    49fa68a7
    build: GCC warning on strncpy · 49fa68a7
    Chris Sosnin authored
    As long as we are sure, that strlen(sd_unix_path) < sizeof(sa.sun_path)
    we can assume that there is always enough space and the path will be
    null-terminated. Thus, copy 1 byte less to get rid of the warning.
    
    Closes #4515
    49fa68a7
    History
    build: GCC warning on strncpy
    Chris Sosnin authored
    As long as we are sure, that strlen(sd_unix_path) < sizeof(sa.sun_path)
    we can assume that there is always enough space and the path will be
    null-terminated. Thus, copy 1 byte less to get rid of the warning.
    
    Closes #4515