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/36304] A variable is reset for no apparent reason



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-05-22 23:53 -------
> This is not a bug as %s scans a string so the last &x[7] will overwrite past the array.
That is it will write a NULL character at x[8] which is one past the array.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36304


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