This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Works on dev-c..
- From: Jim Wilson <wilson at tuliptree dot org>
- To: beradero <tessiof at yahoo dot com dot br>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Mar 2008 23:33:32 -0700
- Subject: Re: Works on dev-c..
- References: <16128572.post@talk.nabble.com>
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