summaryrefslogtreecommitdiffstats
path: root/src/dirn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:37:26 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:37:26 +0200
commit23484938138c2ea5aef3fb773f185862f0256ce8 (patch)
treecc7f42701434b924dc257b2712530bc60aea4556 /src/dirn.c
parentf6e46f431db24343684cb9ce3e4feb4fcb71c292 (diff)
Reserve 9 digits instead of 7 to display file size in directory listing
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dirn.c b/src/dirn.c
index b344bc3..798eb19 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -107,9 +107,9 @@ static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_
strncpy(datestr, " ",sizeof(datestr));
}
mode_string(current_file->stat.st_mode,str);
- wprintw(window, "%s %5u %5u ",
+ wprintw(window, "%s %5u %5u ",
str, (unsigned int)current_file->stat.st_uid, (unsigned int)current_file->stat.st_gid);
- wprintw(window, "%7llu", (long long unsigned int)current_file->stat.st_size);
+ wprintw(window, "%9llu", (long long unsigned int)current_file->stat.st_size);
/* screen may overlap due to long filename */
wprintw(window, " %s %s", datestr, current_file->name);
if((current_file->status&FILE_STATUS_DELETED)!=0 && has_colors())