Reset digit to 0 for inputs starting with "0x".

This commit is contained in:
Ulrich Drepper 2007-09-15 22:21:19 +00:00
parent 9bd6890201
commit 444897ec50
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ again:
if (*cp == '0')
digit = 1, base = 8, cp++;
if (*cp == 'x' || *cp == 'X')
base = 16, cp++;
digit = 0, base = 16, cp++;
while ((c = *cp) != 0) {
if (isdigit(c)) {
if (base == 8 && (c == '8' || c == '9'))