Make the scanf family recognize characters again.

This commit is contained in:
Uwe Bonnes 2002-09-09 19:18:53 +00:00 committed by Alexandre Julliard
parent 15e6c40a2f
commit 921eef3bde
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ int _FUNCTION_ {
seendigit=1; seendigit=1;
} }
/* read until no more digits */ /* read until no more digits */
while (width!=0 && (nch!=_EOF_) && _ISDIGIT_(nch)) { while (width!=0 && (nch!=_EOF_) && _CHAR2DIGIT_(nch, base)!=-1) {
cur = cur*base + _CHAR2DIGIT_(nch, base); cur = cur*base + _CHAR2DIGIT_(nch, base);
nch = _GETC_(file); nch = _GETC_(file);
if (width>0) width--; if (width>0) width--;