diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /networking/ifconfig.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2 busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip |
attempt to regularize atoi mess.
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 4d346c47f..59b6f0acc 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -379,7 +379,8 @@ int ifconfig_main(int argc, char **argv) | |||
379 | 379 | ||
380 | safe_strncpy(host, *argv, (sizeof host)); | 380 | safe_strncpy(host, *argv, (sizeof host)); |
381 | #ifdef CONFIG_FEATURE_IPV6 | 381 | #ifdef CONFIG_FEATURE_IPV6 |
382 | if ((prefix = strchr(host, '/'))) { | 382 | prefix = strchr(host, '/'); |
383 | if (prefix) { | ||
383 | if (safe_strtoi(prefix + 1, &prefix_len) || | 384 | if (safe_strtoi(prefix + 1, &prefix_len) || |
384 | (prefix_len < 0) || (prefix_len > 128)) | 385 | (prefix_len < 0) || (prefix_len > 128)) |
385 | { | 386 | { |