From 64baf18b09ec3c9377765c494ee66a647f673a4d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 5 Mar 2003 06:35:18 +0000 Subject: (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. --- src/du.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/du.c') 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; -- cgit v1.2.3-54-g00ecf