1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00

(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.
This commit is contained in:
Jim Meyering
2003-03-05 06:35:18 +00:00
parent 05c18320d7
commit 64baf18b09

View File

@@ -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;