=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/scp.c,v retrieving revision 1.68.2.3 retrieving revision 1.68.2.4 diff -u -r1.68.2.3 -r1.68.2.4 --- src/usr.bin/ssh/scp.c 2002/03/09 00:20:44 1.68.2.3 +++ src/usr.bin/ssh/scp.c 2002/06/02 22:56:10 1.68.2.4 @@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.68.2.3 2002/03/09 00:20:44 miod Exp $"); +RCSID("$OpenBSD: scp.c,v 1.68.2.4 2002/06/02 22:56:10 miod Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -756,7 +756,7 @@ cursize = need; } (void) snprintf(namebuf, need, "%s%s%s", targ, - *targ ? "/" : "", cp); + strcmp(targ, "/") ? "/" : "", cp); np = namebuf; } else np = targ; @@ -1073,7 +1073,7 @@ off_t cursize, abbrevsize; double elapsed; int ratio, barlength, i, remaining; - char buf[256]; + char buf[512]; if (flag == -1) { (void) gettimeofday(&start, (struct timezone *) 0); @@ -1099,10 +1099,13 @@ i = barlength * ratio / 100; snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "|%.*s%*s|", i, - "***************************************" - "***************************************" - "***************************************" - "***************************************", + "*******************************************************" + "*******************************************************" + "*******************************************************" + "*******************************************************" + "*******************************************************" + "*******************************************************" + "*******************************************************", barlength - i, ""); } i = 0;