summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/inet/inet_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/inet_net.c b/libc/inet/inet_net.c
index a1d2b3d85..0f367ad67 100644
--- a/libc/inet/inet_net.c
+++ b/libc/inet/inet_net.c
@@ -69,7 +69,7 @@ inet_network(const char *cp)
if (isdigit(c)) {
if (base == 8 && c > '7')
return (INADDR_NONE);
- val = val * base + c - '0';
+ val = val * base + c - '0';
} else if (base == 16 && isxdigit(c))
val = (val << 4) + 10 - (islower(c) ? 'a' : 'A');
else