use bigger local variable to calculate free space

int overflows at 1T free space
This commit is contained in:
Bernd Walter 2008-09-01 12:32:40 +00:00
parent 2765482b7f
commit ee9069d1d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182599

View File

@ -329,7 +329,7 @@ noresponse(void)
static int
chksize(int size)
{
int spacefree;
int64_t spacefree;
struct statfs sfb;
if (statfs(".", &sfb) < 0) {