aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c
index 2542d791..6dcda835 100644
--- a/toys/other/ifconfig.c
+++ b/toys/other/ifconfig.c
@@ -88,7 +88,7 @@ int get_addrinfo(char *host, sa_family_t af, void *addr)
freeaddrinfo(result);
len = -1;
- if (slash) len = atolx_range(slash+1, 0, (af == AF_INET) ? 128 : 32);
+ if (slash) len = atolx_range(slash+1, 0, (af == AF_INET) ? 32 : 128);
return len;
}