summaryrefslogtreecommitdiff
path: root/libexec/talkd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-27 21:25:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-27 21:25:41 +0000
commit1811834170bb3dcb7e6f52d498aafb42d4584953 (patch)
tree1dcc702616e850256b06de54ac370c976fb742da /libexec/talkd
parent3f55a14052f7f33809c84e093c3f451ef8aec80f (diff)
unsigned char for ctype
ok okan kettenis
Diffstat (limited to 'libexec/talkd')
-rw-r--r--libexec/talkd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c
index 6d2df621f04..49c627e0f28 100644
--- a/libexec/talkd/process.c
+++ b/libexec/talkd/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.19 2009/10/27 23:59:31 deraadt Exp $ */
+/* $OpenBSD: process.c,v 1.20 2013/11/27 21:25:24 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -81,7 +81,7 @@ process_request(CTL_MSG *mp, CTL_RESPONSE *rp)
return;
}
for (s = mp->l_name; *s; s++)
- if (!isprint(*s)) {
+ if (!isprint((unsigned char)*s)) {
syslog(LOG_NOTICE, "Illegal user name. Aborting");
rp->answer = FAILED;
return;