Important fix to calentool v1.4

Bill Randle billr at tekred.TEK.COM
Fri Jan 6 02:51:31 AEST 1989


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 at 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];



More information about the Comp.sources.bugs mailing list