summaryrefslogtreecommitdiffstats
path: root/usr.bin/renice
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-05-16 23:55:35 +0000
committertjr <tjr@FreeBSD.org>2002-05-16 23:55:35 +0000
commit58d4fae22c7f080594c013617c02674759448f3b (patch)
treeefa31006146fe4a71e8a20976e4568464abd888a /usr.bin/renice
parent86e991cd9899d11663b3107ee45be8fbed6f77b1 (diff)
downloadFreeBSD-src-58d4fae22c7f080594c013617c02674759448f3b.zip
FreeBSD-src-58d4fae22c7f080594c013617c02674759448f3b.tar.gz
Process and user ID arguments must be treated as decimal integers,
not octal or hex. This is the way it was before revision 1.10. PR: 36950 Submitted by: Peter Avalos <pavalos@theshell.com>
Diffstat (limited to 'usr.bin/renice')
-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 71c7087..cda69fd 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);
OpenPOWER on IntegriCloud