mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 11:33:43 +00:00
[CRT]
- Import commit 638c8e38 (Don't overwrite unmatched string in scanf) from Wine. Fixes crash in msvcrt_winetest:scanf svn path=/trunk/; revision=62971
This commit is contained in:
parent
4e9db02236
commit
f48d45d73c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue