summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/sysctl/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 404a6d6..5b5672c 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -168,7 +168,7 @@ parse(char *string)
switch (kind & CTLTYPE) {
case CTLTYPE_INT:
- intval = atoi(newval);
+ intval = (int) strtol(newval, NULL, 0);
newval = &intval;
newsize = sizeof intval;
break;
OpenPOWER on IntegriCloud