X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfwscanf.c;h=82f4860441e5b41e52d2e27ddefb2fa1b50ecafb;hb=0e5234807dcdc76c43f9313c6ba9e2b7da408d8c;hp=a7cd09231a311f2a4abc8dba4cd5a3921ff65bc1;hpb=9255dad97e7bfd4165d1aa0f93f2aae321a7a4d8;p=musl diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c index a7cd0923..82f48604 100644 --- a/src/stdio/vfwscanf.c +++ b/src/stdio/vfwscanf.c @@ -11,7 +11,6 @@ #include "shgetc.h" #include "intscan.h" #include "floatscan.h" -#include "libc.h" #define SIZE_hh -2 #define SIZE_h -1 @@ -77,7 +76,7 @@ static int in_set(const wchar_t *set, int c) #if 1 #undef getwc #define getwc(f) \ - ((f)->rpos < (f)->rend && *(f)->rpos < 128 ? *(f)->rpos++ : (getwc)(f)) + ((f)->rpos != (f)->rend && *(f)->rpos < 128 ? *(f)->rpos++ : (getwc)(f)) #undef ungetwc #define ungetwc(c,f) \