summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorticso <ticso@FreeBSD.org>2008-09-01 12:32:40 +0000
committerticso <ticso@FreeBSD.org>2008-09-01 12:32:40 +0000
commit65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70 (patch)
tree28c51fc7c1901b255a34f01e2de192aa07ecb976 /usr.sbin
parent9f3f0743406b7186e6780d53c0e68af9ed71ca72 (diff)
downloadFreeBSD-src-65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70.zip
FreeBSD-src-65d9c98ddd8a33f8c8f4bfbeb3481cf2f09bfd70.tar.gz
use bigger local variable to calculate free space
int overflows at 1T free space
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c2
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) {
OpenPOWER on IntegriCloud