$NetBSD: patch-av,v 1.2 2005/07/03 15:23:34 wulf Exp $

--- src/parsetime.c.orig	2005-05-28 22:31:55.000000000 +0930
+++ src/parsetime.c	2005-06-19 14:05:00.000000000 +0930
@@ -662,6 +662,7 @@
     /* using time_t seems to help portability with 64bit oses */    
     time_t mday=0, wday, mon, year = ptv->tm.tm_year;
     int tlen;
+    time_t montime;
 
     switch (sc_tokid) {
     case YESTERDAY:
@@ -716,7 +717,8 @@
 	    tlen = strlen(sc_token);
 	    mon = atol(sc_token);
             if (mon > 10*365*24*60*60) {
-		ptv->tm=*localtime(&mon);
+		montime = mon;
+		ptv->tm=*localtime(&montime);
 		token();
 		break;
 	    }
