summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.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/fat_dir.c
parentf6e46f431db24343684cb9ce3e4feb4fcb71c292 (diff)
Reserve 9 digits instead of 7 to display file size in directory listing
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 8b80a7c..6d8b8c1 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -296,7 +296,7 @@ RecEnd:
#ifdef HAVE_STRUCT_STAT_ST_BLOCKS
if(new_file->stat.st_blksize!=0)
{
- new_file->stat.st_blocks=(new_file->stat.st_size+new_file->stat.st_blksize-1)/new_file->stat.st_blksize;
+ new_file->stat.st_blocks=(le32(de->size) + new_file->stat.st_blksize - 1) / new_file->stat.st_blksize;
}
#endif
#endif