From: ceriel Date: Fri, 5 Apr 1991 09:24:45 +0000 (+0000) Subject: prevent overflow X-Git-Tag: release-5-5~1143 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7c2c7f23e3e8893dbe9606852b8697bad4668732;p=ack.git prevent overflow --- diff --git a/lang/cem/libcc.ansi/time/misc.c b/lang/cem/libcc.ansi/time/misc.c index 542323ea8..59f255ede 100644 --- a/lang/cem/libcc.ansi/time/misc.c +++ b/lang/cem/libcc.ansi/time/misc.c @@ -491,7 +491,7 @@ _dstget(register struct tm *timep) if (timep->tm_yday == begindst) dsttranssec = dsts->ds_sec; else dsttranssec = dste->ds_sec; - cursec = ((timep->tm_hour * 60) + timep->tm_min) * 60 + cursec = ((timep->tm_hour * 60) + timep->tm_min) * 60L + timep->tm_sec; if ((timep->tm_yday == begindst && cursec >= dsttranssec)