diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-23 00:16:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-23 00:16:17 +0000 |
commit | 1a5cec3c21e8fad791d1e086952edbf7a1594205 (patch) | |
tree | 99463bd841b694d50c84e0965ce2516d6ffd9f1f | |
parent | babb4e45cc2a108ffd44b140418f69a9898a9066 (diff) |
slightly better care
-rw-r--r-- | usr.bin/ssh/scp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index dfeaa29df56..1d72add80a6 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.74 2001/06/16 08:57:35 markus Exp $"); +RCSID("$OpenBSD: scp.c,v 1.75 2001/06/23 00:16:16 deraadt Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -635,7 +635,7 @@ sink(argc, argv) #define atime tv[0] #define mtime tv[1] -#define SCREWUP(str) { why = str; goto screwup; } +#define SCREWUP(str) do { why = str; goto screwup; } while (0) setimes = targisdir = 0; mask = umask(0); @@ -968,7 +968,7 @@ okname(cp0) cp = cp0; do { - c = *cp; + c = (int)*cp; if (c & 0200) goto bad; if (!isalpha(c) && !isdigit(c) && |