Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 04:18:26 +0000 (UTC)
From:      Greg Lehey <grog@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244134 - head/bin/df
Message-ID:  <201212120418.qBC4IQGu057871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grog
Date: Wed Dec 12 04:18:25 2012
New Revision: 244134
URL: http://svnweb.freebsd.org/changeset/base/244134

Log:
  Handle large negative block counts correctly.
  
  MFC after:	 2 weeks

Modified:
  head/bin/df/df.c

Modified: head/bin/df/df.c
==============================================================================
--- head/bin/df/df.c	Wed Dec 12 02:55:40 2012	(r244133)
+++ head/bin/df/df.c	Wed Dec 12 04:18:25 2012	(r244134)
@@ -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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212120418.qBC4IQGu057871>