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

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) {