summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 20:54:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 20:54:11 +0000
commit8927102be4f9fac5a25493cde928757927c4438e (patch)
treedfa99c8ab3b39b8e69aecab8c2df4945d35e2550 /bin
parent88e5ac60048b333effb71fe9e7b3c3926a1f7cf1 (diff)
unsigned casts for ctype macros where neccessary
ok guenther millert markus
Diffstat (limited to 'bin')
-rw-r--r--bin/rcp/rcp.c4
-rw-r--r--bin/rcp/util.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 8c58b9c2937..18cd765240a 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcp.c,v 1.53 2013/11/12 04:36:02 deraadt Exp $ */
+/* $OpenBSD: rcp.c,v 1.54 2013/11/20 20:53:55 deraadt Exp $ */
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
/*
@@ -652,7 +652,7 @@ sink(int argc, char *argv[])
if (*cp++ != ' ')
SCREWUP("mode not delimited");
- for (size = 0; isdigit(*cp);)
+ for (size = 0; isdigit((unsigned char)*cp);)
size = size * 10 + (*cp++ - '0');
if (*cp++ != ' ')
SCREWUP("size not delimited");
diff --git a/bin/rcp/util.c b/bin/rcp/util.c
index c96eec5bc70..6c0320a20c2 100644
--- a/bin/rcp/util.c
+++ b/bin/rcp/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.19 2009/10/27 23:59:22 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.20 2013/11/20 20:53:55 deraadt Exp $ */
/* $NetBSD: util.c,v 1.2 1995/03/21 08:19:08 cgd Exp $ */
/*-
@@ -86,7 +86,8 @@ okname(char *cp0)
c = *cp;
if (c & 0200)
goto bad;
- if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-')
+ if (!isalpha((unsigned char)c) &&
+ !isdigit((unsigned char)c) && c != '_' && c != '-')
goto bad;
} while (*++cp);
return (1);