From 7c2c7f23e3e8893dbe9606852b8697bad4668732 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 5 Apr 1991 09:24:45 +0000 Subject: [PATCH] prevent overflow --- lang/cem/libcc.ansi/time/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1