diff options
author | ticso <ticso@FreeBSD.org> | 2008-09-01 12:32:40 +0000 |
---|---|---|
committer | ticso <ticso@FreeBSD.org> | 2008-09-01 12:32:40 +0000 |
commit | 65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70 (patch) | |
tree | 28c51fc7c1901b255a34f01e2de192aa07ecb976 | |
parent | 9f3f0743406b7186e6780d53c0e68af9ed71ca72 (diff) | |
download | FreeBSD-src-65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70.zip FreeBSD-src-65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70.tar.gz |
use bigger local variable to calculate free space
int overflows at 1T free space
-rw-r--r-- | usr.sbin/lpr/lpd/recvjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c index 13519a8..a76bb6d 100644 --- a/usr.sbin/lpr/lpd/recvjob.c +++ b/usr.sbin/lpr/lpd/recvjob.c @@ -329,7 +329,7 @@ noresponse(void) static int chksize(int size) { - int spacefree; + int64_t spacefree; struct statfs sfb; if (statfs(".", &sfb) < 0) { |