From: Frederic Marchal Date: Thu, 30 May 2013 08:53:20 +0000 (+0200) Subject: Backport a fix to accept a per user limit over 2G X-Git-Tag: v2.3.7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f4f2c11239c20d730a70dfad7732ef18f27a0cb;p=thirdparty%2Fsarg.git Backport a fix to accept a per user limit over 2G --- diff --git a/html.c b/html.c index 06eb399..5f7a4f2 100644 --- a/html.c +++ b/html.c @@ -526,7 +526,7 @@ void htmlrel(void) } if(PerUserLimit > 0) { - if(tnbytes > (PerUserLimit*1000000)) { + if ((int)(tnbytes/1000000LLU) > PerUserLimit) { limit_flag=0; if(access(PerUserLimitFile, R_OK) == 0) { if((fp_usr = fopen(PerUserLimitFile, "r")) == 0) {