http://bugs.winehq.org/show_bug.cgi?id=13091
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffzaroyko@gmail.com
--- Comment #1 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-05-10 02:42:16 --- If we look purely at your program, the first error I see is that you have failed to check the return value of scanf.
If you read the documentation on scanf, you'll see something similar to what my manpage says:
These functions return the number of input items successfully matched and assigned, which can be fewer than provided for, or even zero in the event of an early matching failure.
If you do check the return value then you can have a real understanding the input that the program receives.