summaryrefslogtreecommitdiffstats
path: root/src/ntfs_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/ntfs_dir.c
parentf6e46f431db24343684cb9ce3e4feb4fcb71c292 (diff)
Reserve 9 digits instead of 7 to display file size in directory listing
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index 6037512..9482bd0 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -260,7 +260,7 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
#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=(filesize + new_file->stat.st_blksize - 1) / new_file->stat.st_blksize;
}
#endif
new_file->stat.st_atime=td_ntfs2utc(sle64_to_cpu(si->last_access_time));