summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-05 06:35:18 +0000
committerJim Meyering <jim@meyering.net>2003-03-05 06:35:18 +0000
commit64baf18b09ec3c9377765c494ee66a647f673a4d (patch)
tree3478e64a9f54e26416b6c4c895d58bf65eff4544 /src/du.c
parent05c18320d772aafde4938176f10d784d7a87fa54 (diff)
downloadcoreutils-64baf18b09ec3c9377765c494ee66a647f673a4d.tar.xz
(process_file): Sizes must all be of type uintmax_t.
Otherwise, for files or totals that are too big, numbers would be truncated. Patch mostly by Michael Stone.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/du.c b/src/du.c
index 00120c611..62dcbafa6 100644
--- a/src/du.c
+++ b/src/du.c
@@ -315,9 +315,9 @@ static int
process_file (const char *file, const struct stat *sb, int file_type,
struct FTW *info)
{
- size_t size;
- size_t size_including_subdirs;
- size_t size_to_propagate_to_parent;
+ uintmax_t size;
+ uintmax_t size_including_subdirs;
+ uintmax_t size_to_propagate_to_parent;
static int first_call = 1;
static size_t prev_level;
static size_t n_alloc;