projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd6890
)
Reset digit to 0 for inputs starting with "0x".
author
Ulrich Drepper
<drepper@redhat.com>
Sat, 15 Sep 2007 22:21:19 +0000
(22:21 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Sat, 15 Sep 2007 22:21:19 +0000
(22:21 +0000)
inet/inet_net.c
patch
|
blob
|
history
diff --git
a/inet/inet_net.c
b/inet/inet_net.c
index
e9331c5
..
d58f1ae
100644
(file)
--- 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'))