diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,7 +75,7 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | #include "includes.h" | 77 | #include "includes.h" |
78 | RCSID("$OpenBSD: scp.c,v 1.87 2002/03/30 17:45:46 deraadt Exp $"); | 78 | RCSID("$OpenBSD: scp.c,v 1.88 2002/04/06 18:24:09 mouring Exp $"); |
79 | 79 | ||
80 | #include "xmalloc.h" | 80 | #include "xmalloc.h" |
81 | #include "atomicio.h" | 81 | #include "atomicio.h" |
@@ -774,7 +774,7 @@ sink(argc, argv) | |||
774 | cursize = need; | 774 | cursize = need; |
775 | } | 775 | } |
776 | (void) snprintf(namebuf, need, "%s%s%s", targ, | 776 | (void) snprintf(namebuf, need, "%s%s%s", targ, |
777 | *targ ? "/" : "", cp); | 777 | strcmp(targ, "/") ? "/" : "", cp); |
778 | np = namebuf; | 778 | np = namebuf; |
779 | } else | 779 | } else |
780 | np = targ; | 780 | np = targ; |