summaryrefslogtreecommitdiffstats
path: root/src/dirn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:42:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:42:44 +0200
commit791794a74fdaa10f1acc707b254161b23007ae26 (patch)
treeb8a5806b41a477c68d3d8519cd9db3d691f44b69 /src/dirn.c
parentb555b3a4f62847a5e27173fc48548d5574fe37d1 (diff)
Workaround for Dos/DJGPP, stat.st_size seems to be 31 bits only.
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dirn.c b/src/dirn.c
index 798eb19..976b2bc 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -109,7 +109,11 @@ static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_
mode_string(current_file->stat.st_mode,str);
wprintw(window, "%s %5u %5u ",
str, (unsigned int)current_file->stat.st_uid, (unsigned int)current_file->stat.st_gid);
+#ifdef DJGPP
+ wprintw(window, "%9llu", (long long unsigned int)current_file->file_size);
+#else
wprintw(window, "%9llu", (long long unsigned int)current_file->stat.st_size);
+#endif
/* 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())