blob: 203a5700ecc57b4efb72db5bb548a099950fd37c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-av,v 1.1 2004/02/07 17:44:10 seb Exp $
--- src/parsetime.c.orig Fri Oct 11 18:39:46 2002
+++ src/parsetime.c
@@ -660,6 +660,7 @@ day(struct time_value *ptv)
{
long mday=0, wday, mon, year = ptv->tm.tm_year;
int tlen;
+ time_t montime;
switch (sc_tokid) {
case YESTERDAY:
@@ -713,7 +714,8 @@ day(struct time_value *ptv)
tlen = strlen(sc_token);
mon = atol(sc_token);
if (mon > 10*356*24*60*60) {
- ptv->tm=*localtime(&mon);
+ montime = mon;
+ ptv->tm=*localtime(&montime);
token();
break;
}
|