summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-11-21 13:56:49 +1100
committerDamien Miller <djm@mindrot.org>2013-11-21 13:56:49 +1100
commite00167307e4d3692695441e9bd712f25950cb894 (patch)
treea652058d84969452a296048635c9e4157f42bd20 /scp.c
parent23e00aa6ba9eee0e0c218f2026bf405ad4625832 (diff)
- 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 28ded5e9a..18d3b1dc9 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).
@@ -1023,7 +1023,7 @@ sink(int argc, char **argv)
1023 if (*cp++ != ' ') 1023 if (*cp++ != ' ')
1024 SCREWUP("mode not delimited"); 1024 SCREWUP("mode not delimited");
1025 1025
1026 for (size = 0; isdigit(*cp);) 1026 for (size = 0; isdigit((unsigned char)*cp);)
1027 size = size * 10 + (*cp++ - '0'); 1027 size = size * 10 + (*cp++ - '0');
1028 if (*cp++ != ' ') 1028 if (*cp++ != ' ')
1029 SCREWUP("size not delimited"); 1029 SCREWUP("size not delimited");
@@ -1287,7 +1287,7 @@ okname(char *cp0)
1287 c = (int)*cp; 1287 c = (int)*cp;
1288 if (c & 0200) 1288 if (c & 0200)
1289 goto bad; 1289 goto bad;
1290 if (!isalpha(c) && !isdigit(c)) { 1290 if (!isalpha(c) && !isdigit((unsigned char)c)) {
1291 switch (c) { 1291 switch (c) {
1292 case '\'': 1292 case '\'':
1293 case '"': 1293 case '"':