Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!comp.vuw.ac.nz!mark From: mark@comp.vuw.ac.nz (Mark Davies) Newsgroups: comp.windows.x Subject: Re: Xmh incorporate bug under sos4.1? Message-ID: <1990Jul15.030337.1603@comp.vuw.ac.nz> Date: 15 Jul 90 03:03:37 GMT References: <1990Jul12.192746.15832@cs.utk.edu> <9007122144.AA02591@excess.lcs.mit.edu> Sender: news@comp.vuw.ac.nz (News Admin) Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand. Lines: 34 In article <9007122144.AA02591@excess.lcs.mit.edu> converse@EXPO.LCS.MIT.EDU writes: >> Using Xmh to incorporate mail, the table of >> contents adds an extra digit to the message >> number. >This is due to a bug in gcc 1.38 which affects xmh. Actually I think Donna meant gcc 1.37. Hopefully this bug should be fixed in 1.38 as I reported it to bug-gcc when I first noticed it. Here is the workaround I use in the meantime. *** 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; cheers mark