This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/71501] printf %s error on str[5], for example: strncpy(str, "12345", 5)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71501

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
%s requires a zero-terminated string.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]