summaryrefslogtreecommitdiff
path: root/usr.bin/finger/util.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:19:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:19:08 +0000
commit9c87bfa9d5ea46fd4fe5c8edb947aec28e748573 (patch)
tree8be8e4e1654412e91168bb2f405a3a753d0c8972 /usr.bin/finger/util.c
parent60adb56e9c39b26c1401c07dc1d1c8f79489daed (diff)
unsigned char casts for ctype
ok krw
Diffstat (limited to 'usr.bin/finger/util.c')
-rw-r--r--usr.bin/finger/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index 8cf7997a554..8edbfa483aa 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.23 2009/10/27 23:59:38 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.24 2013/11/26 13:18:55 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -182,7 +182,7 @@ expandusername(char *gecos, char *login, char *buf, int buflen)
if (*p == '&') {
/* interpolate full name */
strlcpy(bp, login, buflen - (bp - buf));
- *bp = toupper(*bp);
+ *bp = toupper((unsigned char)*bp);
bp += strlen(bp);
}
else
@@ -342,7 +342,7 @@ prphone(char *num)
/* don't touch anything if the user has their own formatting */
for (p = num; *p; ++p)
- if (!isdigit(*p))
+ if (!isdigit((unsigned char)*p))
return (num);
len = p - num;
p = pbuf;