summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-25 04:28:30 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-25 04:28:30 +0000
commit7d5ed3a07b0f00e961d636514ac42d4f1bc57a3e (patch)
tree749ead90bc35061d08bfe48e2d1b4bf1306ed816 /scp.c
parent6ab6486273b8a2fb42c3472a7fc8914f20b8edb7 (diff)
- deraadt@cvs.openbsd.org 2001/06/23 00:16:16
[scp.c] slightly better care
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 2ca48dd5..1a83a298 100644
--- a/scp.c
+++ b/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"
@@ -662,7 +662,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);
@@ -1003,7 +1003,7 @@ okname(cp0)
cp = cp0;
do {
- c = *cp;
+ c = (int)*cp;
if (c & 0200)
goto bad;
if (!isalpha(c) && !isdigit(c) &&