This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53041] Changing of array is leading to changing of another variable
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Apr 2012 12:10:27 +0000
- Subject: [Bug c/53041] Changing of array is leading to changing of another variable
- Auto-submitted: auto-generated
- References: <bug-53041-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53041
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution| |INVALID
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-04-19 12:10:27 UTC ---
See: http://pubs.opengroup.org/onlinepubs/007904975/functions/scanf.html
s
Matches a sequence of bytes that are not white-space characters. The
application shall ensure that the corresponding argument is a pointer to the
initial byte of an array of char, signed char, or unsigned char large enough to
accept the sequence and a terminating null character code, which shall be added
automatically.