mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
fix invalid %m format crash in wide scanf variants
the wide variant was missed in the previous commit.
This commit is contained in:
parent
cbb8a69790
commit
f0328a5656
@ -143,6 +143,8 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*p=='m') {
|
if (*p=='m') {
|
||||||
|
wcs = 0;
|
||||||
|
s = 0;
|
||||||
alloc = !!dest;
|
alloc = !!dest;
|
||||||
p++;
|
p++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user