[Bug 13091] Input error compiling c++ sources with mingw

wine-bugs at winehq.org wine-bugs at winehq.org
Sat May 10 02:42:17 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=13091


Jeff Zaroyko <jeffzaroyko at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeffzaroyko at gmail.com




--- Comment #1 from Jeff Zaroyko <jeffzaroyko at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list