diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-05 06:35:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-05 06:35:18 +0000 |
commit | 64baf18b09ec3c9377765c494ee66a647f673a4d (patch) | |
tree | 3478e64a9f54e26416b6c4c895d58bf65eff4544 | |
parent | 05c18320d772aafde4938176f10d784d7a87fa54 (diff) | |
download | coreutils-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.
-rw-r--r-- | src/du.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |