diff options
Diffstat (limited to 'usr.sbin/cron/do_command.c')
| -rw-r--r-- | usr.sbin/cron/do_command.c | 4 |
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)))) |
