]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(process_file): Sizes must all be of type uintmax_t.
authorJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 06:35:18 +0000 (06:35 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 06:35:18 +0000 (06:35 +0000)
Otherwise, for files or totals that are too big, numbers would
be truncated.  Patch mostly by Michael Stone.

src/du.c

index 00120c6115f04af2e23142f75a8108902a5cd8d0..62dcbafa6bd2cd096ba10e57c8f6a09d274f9554 100644 (file)
--- 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;