diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1999-11-17 23:42:09 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1999-11-17 23:42:09 +0000 |
| commit | 26909c80195f52d868fb07992ae5d875b13f5653 (patch) | |
| tree | 98d0fc150245a9b28cb55a0625f02192b757a910 | |
| parent | bdf1e3f204eb5b025b34f76a3e20939e15ce6fe7 (diff) | |
Notes
| -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 404a6d6af3b1..5b5672c16a46 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; |
