public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8615151
)
prevent overflow
author
ceriel
<none@none>
Fri, 5 Apr 1991 09:24:45 +0000
(09:24 +0000)
committer
ceriel
<none@none>
Fri, 5 Apr 1991 09:24:45 +0000
(09:24 +0000)
lang/cem/libcc.ansi/time/misc.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/time/misc.c
b/lang/cem/libcc.ansi/time/misc.c
index
542323e
..
59f255e
100644
(file)
--- 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) * 60
L
+ timep->tm_sec;
if ((timep->tm_yday == begindst && cursec >= dsttranssec)