summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-06 18:29:59 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-06 18:29:59 +0000
commitde3895d580cd9748d48f414a81f740451b34e850 (patch)
tree84d60a87f87e3e846fc9c035514db3bdbb642869 /scp.c
parent8d6017566c99387fa52d6f5a09af2be5407acf29 (diff)
- mouring@cvs.openbsd.org 2002/04/06 18:24:09
[scp.c] Fixes potental double // within path. http://bugzilla.mindrot.org/show_bug.cgi?id=76
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index fcf55abd..1fab4838 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: scp.c,v 1.87 2002/03/30 17:45:46 deraadt Exp $");
+RCSID("$OpenBSD: scp.c,v 1.88 2002/04/06 18:24:09 mouring Exp $");
#include "xmalloc.h"
#include "atomicio.h"
@@ -774,7 +774,7 @@ sink(argc, argv)
cursize = need;
}
(void) snprintf(namebuf, need, "%s%s%s", targ,
- *targ ? "/" : "", cp);
+ strcmp(targ, "/") ? "/" : "", cp);
np = namebuf;
} else
np = targ;