Xref: utzoo comp.mail.mh:1020 comp.windows.x:24774 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!nic.MR.NET!shamash!myshkin.udev.cdc.com!mgc From: mgc@myshkin.udev.cdc.com (Mark G Christenson) Newsgroups: comp.mail.mh,comp.windows.x Subject: Re: Xmh incorporate bug under sos4.1? Message-ID: <23489@shamash.cdc.com> Date: 16 Jul 90 09:18:20 GMT References: <1990Jul12.192746.15832@cs.utk.edu> Sender: news@shamash.cdc.com Reply-To: mgc@myshkin.udev.cdc.com (Mark G Christenson) Followup-To: comp.mail.mh Distribution: usa Organization: Control Data Corp., Arden Hills, MN Lines: 39 In article <1990Jul12.192746.15832@cs.utk.edu>, snyder@alphard.cs.utk.edu (Kim Snyder) writes: |>Situation: sun3/60 running sos4.1 and X11R4 |> compiled with gcc. |> |>Using Xmh to incorporate mail, the table of |>contents adds an extra digit to the message |>number. For example; |> |> [example deleted] This was reported on comp.windows.x as a bug in gcc 1.37. The following workaround for Xmh was posted by mark@comp.vuw.ac.nz (Mark Davies): *** tocutil.c~ Fri Dec 15 15:20:04 1989 --- tocutil.c Tue Apr 3 17:40:22 1990 *************** *** 576,582 **** msg->toc = toc; msg->buf = XtNewString(ptr); (void)sprintf(str, "%4d", msgid); ! for (i=0; i<4 ; i++) msg->buf[i] = str[i]; msg->buf[MARKPOS] = ' '; msg->msgid = msgid; msg->position = toc->lastPos; --- 576,582 ---- msg->toc = toc; msg->buf = XtNewString(ptr); (void)sprintf(str, "%4d", msgid); ! for (i=4; i-- > 0 ;) msg->buf[i] = str[i]; msg->buf[MARKPOS] = ' '; msg->msgid = msgid; msg->position = toc->lastPos; Mark Mark Christenson Control Data Corporation Arden Hills, Minnesota