test-normalize.c: In function ‘main’:
test-normalize.c:159:49: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
snprintf(longname, sizeof(longname), "%s/%s", srcdir, filename); ^
In file included from /usr/include/stdio.h:867, from test-normalize.c:37:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hmm, also ugly:
test-normalize.c: In function ‘main’: c:159:49: warning: ‘__builtin_ __snprintf_ chk’ output may be truncated before the last format character [-Wformat- truncation= ] longname, sizeof(longname), "%s/%s", srcdir, filename);
^ stdio.h: 867,
from test-normalize. c:37: x86_64- linux-gnu/ bits/stdio2. h:67:10: note: ‘__builtin_ __snprintf_ chk’ output 2 or more bytes (assuming 257) into a destination of size 256 __snprintf_ chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~
~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~
test-normalize.
snprintf(
In file included from /usr/include/
/usr/include/
return __builtin_
__bos (__s), __fmt, __va_arg_pack ());