From de007c895f1a844e6101217834e5bf23ab4251e6 Mon Sep 17 00:00:00 2001 From: grog Date: Wed, 17 Nov 1999 23:42:09 +0000 Subject: Allow octal or hex input. Suggested-by: Geoff Steckel --- sbin/sysctl/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') 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; -- cgit v1.1