From e4ec95a467c44394ef93cf84c849fda6e6f248fa Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 24 Nov 2013 21:32:33 +0000 Subject: more ctype cleanups checked by jca --- usr.sbin/lpr/common_source/displayq.c | 4 ++-- usr.sbin/lpr/common_source/rmjob.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/lpr/common_source') diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index ffc15f5fa7f..4db659cc62c 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: displayq.c,v 1.33 2013/10/27 18:49:25 guenther Exp $ */ +/* $OpenBSD: displayq.c,v 1.34 2013/11/24 21:32:32 deraadt Exp $ */ /* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */ /* @@ -412,7 +412,7 @@ inlist(char *name, char *file) /* * Check the request list */ - for (n = 0, cp = file+3; isdigit(*cp); ) + for (n = 0, cp = file+3; isdigit((unsigned char)*cp); ) n = n * 10 + (*cp++ - '0'); for (r = requ; r < &requ[requests]; r++) if (*r == n && !strcmp(cp, from)) diff --git a/usr.sbin/lpr/common_source/rmjob.c b/usr.sbin/lpr/common_source/rmjob.c index 54d9f8a5333..f481a7aabf0 100644 --- a/usr.sbin/lpr/common_source/rmjob.c +++ b/usr.sbin/lpr/common_source/rmjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmjob.c,v 1.20 2012/11/29 02:15:44 guenther Exp $ */ +/* $OpenBSD: rmjob.c,v 1.21 2013/11/24 21:32:32 deraadt Exp $ */ /* $NetBSD: rmjob.c,v 1.16 2000/04/16 14:43:58 mrg Exp $ */ /* @@ -279,7 +279,7 @@ chk(char *file) /* * Check the request list */ - for (n = 0, cp = file+3; isdigit(*cp); ) + for (n = 0, cp = file+3; isdigit((unsigned char)*cp); ) n = n * 10 + (*cp++ - '0'); for (r = requ; r < &requ[requests]; r++) if (*r == n && isowner(line+1, file)) -- cgit v1.2.3