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

View file

@ -219,7 +219,7 @@ int _FUNCTION_ {
seendigit=1;
}
/* 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);
nch = _GETC_(file);
if (width>0) width--;