diff options
author | grog <grog@FreeBSD.org> | 2012-12-12 04:18:25 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2012-12-12 04:18:25 +0000 |
commit | 6b6f1383a6052fc96770fbfbd5eeebca095f5784 (patch) | |
tree | 0488f7a94fc970e556db2a650449e6cf339bc628 /bin | |
parent | f97c062bec223fe6716fac1497b773e0deac83a1 (diff) | |
download | FreeBSD-src-6b6f1383a6052fc96770fbfbd5eeebca095f5784.zip FreeBSD-src-6b6f1383a6052fc96770fbfbd5eeebca095f5784.tar.gz |
Handle large negative block counts correctly.
MFC after: 2 weeks
Diffstat (limited to 'bin')
-rw-r--r-- | bin/df/df.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 3058da0..b430608 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); } /* |