From 090f5e1c0bd37c776650f2d5388235ef11d39dd0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 2 Nov 2009 22:51:05 +0100 Subject: [PATCH] Increase width of ls size. Fixes bug #1409 --- bacula/src/dird/ua_tree.c | 2 +- bacula/src/lib/attr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_tree.c b/bacula/src/dird/ua_tree.c index d5580ce313..d87d056e68 100644 --- a/bacula/src/dird/ua_tree.c +++ b/bacula/src/dird/ua_tree.c @@ -529,7 +529,7 @@ static void ls_output(guid_list *guid, char *buf, const char *fname, const char guid->uid_to_name(statp->st_uid, en1, sizeof(en1)), guid->gid_to_name(statp->st_gid, en2, sizeof(en2))); p += n; - n = sprintf(p, "%10.10s ", edit_int64(statp->st_size, ec1)); + n = sprintf(p, "%12.12s ", edit_int64(statp->st_size, ec1)); p += n; if (statp->st_ctime > statp->st_mtime) { time = statp->st_ctime; diff --git a/bacula/src/lib/attr.c b/bacula/src/lib/attr.c index b69bee7aa5..e2eae5f28c 100644 --- a/bacula/src/lib/attr.c +++ b/bacula/src/lib/attr.c @@ -259,7 +259,7 @@ void print_ls_output(JCR *jcr, ATTR *attr) p += sprintf(p, "%-8.8s %-8.8s", guid->uid_to_name(attr->statp.st_uid, en1, sizeof(en1)), guid->gid_to_name(attr->statp.st_gid, en2, sizeof(en2))); - p += sprintf(p, "%10.10s ", edit_int64(attr->statp.st_size, ec1)); + p += sprintf(p, "%12.12s ", edit_int64(attr->statp.st_size, ec1)); p = encode_time(attr->statp.st_ctime, p); *p++ = ' '; *p++ = ' '; -- 2.39.5