summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-07-05 11:21:50 +0000
committerdes <des@FreeBSD.org>2004-07-05 11:21:50 +0000
commit415c7523bab9db4acc587518b33bd745a61bda9c (patch)
tree52051926c4aa970d86e62f05fcdaaf68e5adf23d
parent75b8ca22865b39326d190287e3fba668f2bc9c69 (diff)
downloadFreeBSD-src-415c7523bab9db4acc587518b33bd745a61bda9c.zip
FreeBSD-src-415c7523bab9db4acc587518b33bd745a61bda9c.tar.gz
Truncate long file names in stat_display(), as was originally intended.
MFC after: 1 week
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index e0f8bfe..ed62491 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -200,7 +200,7 @@ stat_display(struct xferstat *xs, int force)
return;
xs->last = now;
- fprintf(stderr, "\r%-46s", xs->name);
+ fprintf(stderr, "\r%-46.46s", xs->name);
if (xs->size <= 0) {
fprintf(stderr, " %s", stat_bytes(xs->rcvd));
} else {
OpenPOWER on IntegriCloud