summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authordjm <djm>2013-11-21 02:56:49 +0000
committerdjm <djm>2013-11-21 02:56:49 +0000
commitf9444cadf2ab75ef3b39a4c3abf6005d412f1755 (patch)
tree14a1df82bf09c56e292a2f0d73e5b7609a178357 /scp.c
parent646b738776001d27b385d32fcd0cc101add67e73 (diff)
downloadopenssh-f9444cadf2ab75ef3b39a4c3abf6005d412f1755.tar.gz
- deraadt@cvs.openbsd.org 2013/11/20 20:53:10
[scp.c] unsigned casts for ctype macros where neccessary ok guenther millert markus
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scp.c b/scp.c
index 28ded5e9..18d3b1dc 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.178 2013/06/22 06:31:57 djm Exp $ */
+/* $OpenBSD: scp.c,v 1.179 2013/11/20 20:53:10 deraadt Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -1023,7 +1023,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");
@@ -1287,7 +1287,7 @@ okname(char *cp0)
c = (int)*cp;
if (c & 0200)
goto bad;
- if (!isalpha(c) && !isdigit(c)) {
+ if (!isalpha(c) && !isdigit((unsigned char)c)) {
switch (c) {
case '\'':
case '"':