http://bugs.winehq.org/show_bug.cgi?id=35346
Bug ID: 35346 Summary: sscanf clears first unmatched string arg Product: Wine Version: 1.7.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: jlv@mxsimulator.com Classification: Unclassified
Created attachment 47152 --> http://bugs.winehq.org/attachment.cgi?id=47152 sscanf test
When sscanf fails on a string match, it clears the next matching string argument. I'm not sure if that's undefined in the C standard but it's not how most scanf functions work.
http://bugs.winehq.org/show_bug.cgi?id=35346
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Confirming in wine 1.7.10.
Results from XP:
C:>sscanftest.exe count=2 a="foo" b="bar" c="default baz"
http://bugs.winehq.org/show_bug.cgi?id=35346
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |638c8e3847212f1d5399643c30f | |ddcf7afc8c6ee Status|NEW |RESOLVED CC| |piotr.caban@gmail.com Resolution|--- |FIXED
--- Comment #2 from Piotr Caban piotr.caban@gmail.com --- Fixed by commit 638c8e3847212f1d5399643c30fddcf7afc8c6ee.
https://bugs.winehq.org/show_bug.cgi?id=35346
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.11.