home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!decwrl!cae780!vadi
- From: vadi@csi.com (Vadivelu Elumalai)
- Subject: Re: heller updates
- Message-ID: <1993Jan12.222553.4252@csi.com>
- Organization: Comdisco Systems Inc.
- Distribution: na
- Date: Tue, 12 Jan 1993 22:25:53 GMT
- Lines: 36
-
- Section: 11.1.5
-
- Example 11-2. The xcal.c program Page # 366 (in my book)
-
-
- In main(), local variable month_no should be initialized (to 1).
-
- While,
-
- % xcal initializes month_no
-
-
- % xcal 1993 does not.
-
-
-
- This is a potential bug as month_no is passed to XmListSelectPos() later
- in main() procedure.
-
- XmListSelectPos(w, month_no, True);
-
- Problem Code: In main()
-
- int i, month_no ;
-
- It should be,
-
- int 1, month_no = 1 ; /* or any number in the range 1 - 12 */
-
-
- -Vadi
- vadi@csi.com
- -----------------------------------------------------------------------------
- vadi@csi.com | Sex is not the answer. Sex is the question. Yes is the answer.
- -----------------------------------------------------------------------------
-
-