You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use sizeof() for strncpy's dest, instead of a dissociated constant
This small DRY change also fixes a GCC 8 warning:
csv.h:78:48: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
GCC is unable to determine that error::max_file_name_length is the
file_name - using sizeof() helps here.
0 commit comments