projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9db02
)
[CRT]
author
Thomas Faber
<thomas.faber@reactos.org>
Fri, 25 Apr 2014 22:02:26 +0000
(22:02 +0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Fri, 25 Apr 2014 22:02:26 +0000
(22:02 +0000)
- Import commit
638c8e38
(Don't overwrite unmatched string in scanf) from Wine. Fixes crash in msvcrt_winetest:scanf
svn path=/trunk/; revision=62971
reactos/lib/sdk/crt/string/scanf.h
patch
|
blob
|
history
diff --git
a/reactos/lib/sdk/crt/string/scanf.h
b/reactos/lib/sdk/crt/string/scanf.h
index
69ca719
..
4aada82
100644
(file)
--- a/
reactos/lib/sdk/crt/string/scanf.h
+++ b/
reactos/lib/sdk/crt/string/scanf.h
@@
-359,7
+359,7
@@
_FUNCTION_ {
if (width>0) width--;
}
/* terminate */
- if (!suppress) *sptr = 0;
+ if (
st &&
!suppress) *sptr = 0;
}
break;
widecharstring: { /* read a word into a wchar_t* */
@@
-375,7
+375,7
@@
_FUNCTION_ {
if (width>0) width--;
}
/* terminate */
- if (!suppress) *sptr = 0;
+ if (
st &&
!suppress) *sptr = 0;
}
break;
/* 'c' and 'C work analogously to 's' and 'S' as described