Path: utzoo!attcan!uunet!tektronix!tekgen!tekred!billr From: billr@tekred.TEK.COM (Bill Randle) Newsgroups: comp.sources.bugs Subject: Important fix to calentool v1.4 Message-ID: <3452@tekred.TEK.COM> Date: 5 Jan 89 16:51:31 GMT Reply-To: billr@saab.CNA.TEK.COM (Bill Randle) Organization: Tektronix, Inc., Redmond, OR Lines: 19 Calentool v1.4 is off by one day with the start of the new year. Thanks to several people for pointing this out (and reminding me that I had fixed this before but never posted it). Apply this fix to the file utils.c and recompile. -Bill Randle Tektronix, Inc. billr@saab.CNA.TEK.COM Differences to utils.c, version 1.4 ************************************************************************* 93c93 < int year_days[] = {0, 365, 730, 1096, 1461, 1826, 2191, 2557, 2922, --- > int year_days[] = {0, 365, 730, 1095, 1461, 1826, 2191, 2557, 2922, 104c104 < t = tm->tm_yday + year_days[tm->tm_year-85] - year_days[START_YEAR-85] - 1; --- > t = tm->tm_yday + year_days[tm->tm_year-85] - year_days[START_YEAR-85];