diff options
author | grog <grog@FreeBSD.org> | 1999-11-17 23:42:09 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-11-17 23:42:09 +0000 |
commit | de007c895f1a844e6101217834e5bf23ab4251e6 (patch) | |
tree | 98d0fc150245a9b28cb55a0625f02192b757a910 /sbin | |
parent | 9257d7c5a0a5c14f615b04ada4f4b5884d6359c7 (diff) | |
download | FreeBSD-src-de007c895f1a844e6101217834e5bf23ab4251e6.zip FreeBSD-src-de007c895f1a844e6101217834e5bf23ab4251e6.tar.gz |
Allow octal or hex input.
Suggested-by: Geoff Steckel <gwes@sitaranetworks.com>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 2 |
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; |