Browse Source

fix invalid %m format crash in wide scanf variants

the wide variant was missed in the previous commit.
rs-1.0
Rich Felker 13 years ago
parent
commit
f0328a5656
  1. 2
      src/stdio/vfwscanf.c

2
src/stdio/vfwscanf.c

@ -143,6 +143,8 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
}
if (*p=='m') {
wcs = 0;
s = 0;
alloc = !!dest;
p++;
} else {

Loading…
Cancel
Save