summaryrefslogtreecommitdiff
path: root/usr.bin/renice
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-05-16 23:55:35 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-05-16 23:55:35 +0000
commit9e49944008d77c324628e246c766f68e8cca2b6a (patch)
treeefa31006146fe4a71e8a20976e4568464abd888a /usr.bin/renice
parentae5a6820667144c38d9ccae373d2b0e9393dad5b (diff)
downloadsrc-test-9e49944008d77c324628e246c766f68e8cca2b6a.tar.gz
src-test-9e49944008d77c324628e246c766f68e8cca2b6a.zip
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>
Notes
Notes: svn path=/head/; revision=96764
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 71c7087faa347..cda69fd1ad3fd 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);