diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 '"': |