[comp.sources.bugs] Important fix to calentool v1.4

billr@tekred.TEK.COM (Bill Randle) (01/06/89)

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