aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2004-01-22 04:33:00 +0000
committerColin Percival <cperciva@FreeBSD.org>2004-01-22 04:33:00 +0000
commitd3b68bf14c410df3c75debd98e4504385be850f1 (patch)
tree48d4b2e6fa998840f39caa628eb9abd6707b512e /bin
parent54ca359425fa8db3734798f19d6bf822e4fd2096 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c
index fb8d71868ce3..10a19d9e1330 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -624,9 +624,9 @@ printsize(size_t width, off_t bytes)
unit = unit_adjust(&dbytes);
if (dbytes == 0)
- (void)printf("%*s ", (u_int)width, "0B");
+ (void)printf("%*s ", 4, "0B");
else
- (void)printf("%*.*f%c ", (u_int)width - 1,
+ (void)printf("%*.*f%c ", 3,
dbytes > 10 ? 0 : 1, dbytes, "BKMGTPE"[unit]);
} else
(void)printf("%*jd ", (u_int)width, bytes);