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

wine-bugs at winehq.org wine-bugs at winehq.org
Sat May 10 16:35:54 CDT 2008


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


Vitaliy Margolen <vitaliy at kievinfo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal




--- Comment #3 from Vitaliy Margolen <vitaliy at kievinfo.com>  2008-05-10 16:35:54 ---
Did you used this in wineconsole? Or just run 'cmd.exe your_program.exe'?

Use of "gets" is strongly discouraged in all it's applications. You should
NEVER use it in your programs.
Can you describe again what are you inputting, and how it should work? And what
results you get on Wine? What are you expecting to be in "i", "c", "s"? With
what input?

Not checking return from functions that get user input is really really bad
practice. One should always validate all inputs, especially if it's from
user/other program. This is about your comment not checking output from scanf.


-- 
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