summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
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 b7a17abfe..0669d0215 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.178 2013/06/22 06:31:57 djm Exp $ */ 1/* $OpenBSD: scp.c,v 1.179 2013/11/20 20:53:10 deraadt Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -1031,7 +1031,7 @@ sink(int argc, char **argv)
1031 if (*cp++ != ' ') 1031 if (*cp++ != ' ')
1032 SCREWUP("mode not delimited"); 1032 SCREWUP("mode not delimited");
1033 1033
1034 for (size = 0; isdigit(*cp);) 1034 for (size = 0; isdigit((unsigned char)*cp);)
1035 size = size * 10 + (*cp++ - '0'); 1035 size = size * 10 + (*cp++ - '0');
1036 if (*cp++ != ' ') 1036 if (*cp++ != ' ')
1037 SCREWUP("size not delimited"); 1037 SCREWUP("size not delimited");
@@ -1295,7 +1295,7 @@ okname(char *cp0)
1295 c = (int)*cp; 1295 c = (int)*cp;
1296 if (c & 0200) 1296 if (c & 0200)
1297 goto bad; 1297 goto bad;
1298 if (!isalpha(c) && !isdigit(c)) { 1298 if (!isalpha(c) && !isdigit((unsigned char)c)) {
1299 switch (c) { 1299 switch (c) {
1300 case '\'': 1300 case '\'':
1301 case '"': 1301 case '"':