X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfscanf.c;h=54d08495bbe0a163c75dd91d7c379379b448d38b;hb=f0f17b5b70f700f83d6ee838458d52d94d4e7ac0;hp=64fa97543142e16012f34c632ffbca209cf05cf6;hpb=cb81b6947c0277a6a27ddc699d716e9cf2b524aa;p=musl diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index 64fa9754..54d08495 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -71,7 +71,7 @@ static int readwc(int c, wchar_t **wcs, mbstate_t *st) return 0; } -int vfscanf(FILE *f, const char *fmt, va_list ap) +int vfscanf(FILE *restrict f, const char *restrict fmt, va_list ap) { int width; int size; @@ -103,6 +103,7 @@ int vfscanf(FILE *f, const char *fmt, va_list ap) } if (*p != '%' || p[1] == '%') { p += *p=='%'; + shlim(f, 0); c = shgetc(f); if (c!=*p) { shunget(f);