Works on dev-c..

Jim Wilson wilson@tuliptree.org
Thu Mar 20 06:34:00 GMT 2008


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



More information about the Gcc-bugs mailing list