15-Jan-86 07:46:13-MST,1272;000000000001
Return-Path: <unix-sources-request@BRL.ARPA>
Received: from BRL-TGR.ARPA by SIMTEL20.ARPA with TCP; Wed 15 Jan 86 07:46:07-MST
Received: from usenet by TGR.BRL.ARPA id a014705; 15 Jan 86 8:30 EST
From: Martin Minow <minow@decvax.uucp>
Newsgroups: net.sources.bugs
Subject: bug in mod.sources calend.c
Message-ID: <160@decvax.UUCP>
Date: 15 Jan 86 02:18:56 GMT
To:       unix-sources-bugs@BRL-TGR.ARPA

David Vezie (hplabs!well!dv) was kind enough to point out a small
bug in my recent mod.sources posting of calend (rewrite of Unix cal).
A diff of calend.c is attached.

I would also note that a program to maintain appointment calendars,
also named calend, has been posted to net.sources.  You should rename
my program if you have already implemented a utility named calend.

Martin Minow
decvax!minow

%diff calend.c fixed_calend.c
69a70,72
> 	Parise, Frank, ed., The Book of Calendars, Facts on File,
> 	New York, 1982.
> 
74a78,83
> /*
>  * Edit history
>  * 1978?	??	Original version for Decus C
>  * 27-Dec-1985	MM	Usenet submission.
>  * 10-Jan-1986	DWV	Bug in 1752 magic
>  */
446c455
< 	else if (info.sept == 19 && today >= 3)	/* The magical month?	*/
---
> 	else if (info.days_in_month == 19 && today >= 3) /* Magic time?	*/
