public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Works on dev-c..
@ 2008-03-18 19:12 beradero
2008-03-20 6:34 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: beradero @ 2008-03-18 19:12 UTC (permalink / raw)
To: gcc-bugs
Hello, It's the code:
http://www.nabble.com/file/p16128572/1.c 1.c
Try enter the number 0010 (number then), 00010, etc.. and see the bizarre
output..
Thanks..
--
View this message in context: http://www.nabble.com/Works-on-dev-c..-tp16128572p16128572.html
Sent from the gcc - bugs mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Works on dev-c..
2008-03-18 19:12 Works on dev-c beradero
@ 2008-03-20 6:34 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2008-03-20 6:34 UTC (permalink / raw)
To: beradero; +Cc: gcc-bugs
beradero wrote:
> Hello, It's the code:
> http://www.nabble.com/file/p16128572/1.c 1.c
> Try enter the number 0010 (number then), 00010, etc.. and see the bizarre
> output..
Your code is buggy. This is an obvious string overflow problem. You
can't fit a 6 character string into a 4 character array.
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-20 6:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 19:12 Works on dev-c beradero
2008-03-20 6:34 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).