use bigger local variable to calculate free space
int overflows at 1T free space
This commit is contained in:
parent
2765482b7f
commit
ee9069d1d9
@ -329,7 +329,7 @@ noresponse(void)
|
||||
static int
|
||||
chksize(int size)
|
||||
{
|
||||
int spacefree;
|
||||
int64_t spacefree;
|
||||
struct statfs sfb;
|
||||
|
||||
if (statfs(".", &sfb) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user