aboutsummaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-09-15 22:21:19 +0000
committerUlrich Drepper <drepper@redhat.com>2007-09-15 22:21:19 +0000
commit444897ec5052e1969c25bdbded462c1a337b9730 (patch)
tree1e3ca75451368e6950f94cce11926673ef7a37ec /inet
parent9bd6890201a1ca5d5da560c0edf8edcc1d0b456e (diff)
downloadglibc-444897ec5052e1969c25bdbded462c1a337b9730.zip
glibc-444897ec5052e1969c25bdbded462c1a337b9730.tar.gz
glibc-444897ec5052e1969c25bdbded462c1a337b9730.tar.bz2
Reset digit to 0 for inputs starting with "0x".
Diffstat (limited to 'inet')
-rw-r--r--inet/inet_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/inet_net.c b/inet/inet_net.c
index e9331c5..d58f1ae 100644
--- a/inet/inet_net.c
+++ b/inet/inet_net.c
@@ -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'))