use bigger local variable to calculate free space

int overflows at 1T free space
This commit is contained in:
ticso 2008-09-01 12:32:40 +00:00
parent 9f3f074340
commit 65d9c98ddd

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