diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-24 21:32:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-24 21:32:33 +0000 |
commit | e4ec95a467c44394ef93cf84c849fda6e6f248fa (patch) | |
tree | b8c9af86534578db343e9245cca85fc8cc106491 /usr.sbin/lpr/lpc | |
parent | 432b5bbdbf330ee3fc70fec50f8d77f2eae0b548 (diff) |
more ctype cleanups
checked by jca
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index 7fe784578c9..3b4a59b8e33 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.24 2012/11/29 02:15:44 guenther Exp $ */ +/* $OpenBSD: cmds.c,v 1.25 2013/11/24 21:32:32 deraadt Exp $ */ /* $NetBSD: cmds.c,v 1.12 1997/10/05 15:12:06 mrg Exp $ */ /* @@ -1061,14 +1061,14 @@ doarg(char *job) /* * Check for job specified by number (example: 112 or 235ucbarpa). */ - if (isdigit(*job)) { + if (isdigit((unsigned char)*job)) { jobnum = 0; do jobnum = jobnum * 10 + (*job++ - '0'); - while (isdigit(*job)); + while (isdigit((unsigned char)*job)); for (qq = queue + nitems; --qq >= queue; ) { n = 0; - for (cp = (*qq)->q_name+3; isdigit(*cp); ) + for (cp = (*qq)->q_name+3; isdigit((unsigned char)*cp); ) n = n * 10 + (*cp++ - '0'); if (jobnum != n) continue; |