summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/do_command.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 18:23:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 18:23:01 +0000
commitb778f66ba5b14ca8a13ddd6611b156f9346be37e (patch)
treeee7ddfe119090593272a2bd4ae2337af5f32dce6 /usr.sbin/cron/do_command.c
parent51b9e0d27cf6dfcfb2cfa9ed65e80a4e86db8594 (diff)
obvious unsigned char cast for ctype
ok jca
Diffstat (limited to 'usr.sbin/cron/do_command.c')
-rw-r--r--usr.sbin/cron/do_command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index 9a0185ac74d..64eac4c1510 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: do_command.c,v 1.37 2013/03/07 11:13:54 millert Exp $ */
+/* $OpenBSD: do_command.c,v 1.38 2013/11/23 18:23:00 deraadt Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -511,7 +511,7 @@ safe_p(const char *usernm, const char *s) {
const char *t;
int ch, first;
- for (t = s, first = 1; (ch = *t++) != '\0'; first = 0) {
+ for (t = s, first = 1; (ch = (unsigned char)*t++) != '\0'; first = 0) {
if (isascii(ch) && isprint(ch) &&
(isalnum(ch) || ch == '_' ||
(!first && strchr(safe_delim, ch))))