This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71501] printf %s error on str[5], for example: strncpy(str, "12345", 5)
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Jun 2016 17:18:49 +0000
- Subject: [Bug c/71501] printf %s error on str[5], for example: strncpy(str, "12345", 5)
- Auto-submitted: auto-generated
- References: <bug-71501-4 at http dot gcc dot gnu dot org/bugzilla/>
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.