scanf() is not working properly with latest snapshot of newlib.

Eric Blake ebb9@byu.net
Mon Aug 20 23:39:00 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bhushan Attarde on 8/20/2007 12:59 AM:
> int main ( void )
> {          
>  char string[10];
>  
>  while(1)
>  {
>    scanf("%s",&string);

Unrelated to your report, but please fix your bug.  Don't go reading
unlimited length strings into a fixed-width buffer using scanf.

> 
> Anyone have any idea about this?

What platform are you targetting?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGyYT684KuGfSFAYARAkazAKDDZnsbHakJtsMriI/y4T5NGJca3gCgorBA
cSY2ugTOKRRhOOtwS5LUwlU=
=e4r+
-----END PGP SIGNATURE-----



More information about the Newlib mailing list