From f0328a565692320784fa8032f176e40d0998aedd Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 31 Aug 2013 22:52:41 -0400 Subject: fix invalid %m format crash in wide scanf variants the wide variant was missed in the previous commit. --- src/stdio/vfwscanf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c index 44fac78e..75f04d72 100644 --- a/src/stdio/vfwscanf.c +++ b/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 { -- cgit v1.2.3-70-g09d2