summaryrefslogtreecommitdiff
path: root/usr.bin/renice/renice.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/renice/renice.c')
-rw-r--r--usr.bin/renice/renice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index 71c7087faa34..cda69fd1ad3f 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -156,7 +156,7 @@ getnum(const char *com, const char *str, int *val)
char *ep;
errno = 0;
- v = strtol(str, &ep, NULL);
+ v = strtol(str, &ep, 10);
if (v < INT_MIN || v > INT_MAX || errno == ERANGE) {
warnx("%s argument %s is out of range.", com, str);
return (1);