From: Rich Felker Date: Sun, 1 Sep 2013 02:52:41 +0000 (-0400) Subject: fix invalid %m format crash in wide scanf variants X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=f0328a565692320784fa8032f176e40d0998aedd;p=musl fix invalid %m format crash in wide scanf variants the wide variant was missed in the previous commit. --- 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 {