From 6b7aceb85bb052655f81963da82ca28aa7983487 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Wed, 12 Dec 2012 04:18:25 +0000 Subject: [PATCH] Handle large negative block counts correctly. MFC after: 2 weeks --- bin/df/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/df/df.c b/bin/df/df.c index 3058da07b3b7..b43060832b60 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -397,7 +397,7 @@ prthumanvalinode(int64_t bytes) static intmax_t fsbtoblk(int64_t num, uint64_t fsbs, u_long bs) { - return (num * (intmax_t) fsbs / bs); + return (num * (intmax_t) fsbs / (int64_t) bs); } /*