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
GCC 8 introduces a warning when strncpy may truncate a string, leaving
it without the terminating NULL character [-Wstringop-truncation].
To guarantee that the terminator is present:
- increase the size of the target buffer by 1;
- set the last character of the buffer to NULL.
Signed-off-by: Andrea Bocci <[email protected]>
0 commit comments