From cc587db0dd759913018b69e8df615abf0ecdcf74 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sat, 2 Oct 2004 11:05:38 +0000 Subject: [PATCH] Fixed usage of human_readable() in '%k' format specifier to fix a bug reported by Dmitry V. Levin (arguments to human_readable() were specified in the wrong order, which resulted in a floating-point error). --- find/pred.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/find/pred.c b/find/pred.c index 4b120541..5e7048c2 100644 --- a/find/pred.c +++ b/find/pred.c @@ -625,8 +625,8 @@ pred_fprintf (char *pathname, struct stat *stat_buf, struct predicate *pred_ptr) case 'k': /* size in 1K blocks */ fprintf (fp, segment->text, human_readable ((uintmax_t) ST_NBLOCKS (*stat_buf), - hbuf, - ST_NBLOCKSIZE, 1024, human_ceiling)); + hbuf, human_ceiling, + ST_NBLOCKSIZE, 1024)); break; case 'l': /* object of symlink */ #ifdef S_ISLNK