Xref: utzoo comp.windows.x:12148 comp.mail.mh:560 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!ukc!axion!cocoa!ntitley From: ntitley@cocoa.axion.bt.co.uk (Nigel Titley) Newsgroups: comp.windows.x,comp.mail.mh Subject: Bug in xmh (with fix) Message-ID: <2157@zaphod.axion.bt.co.uk> Date: 4 Aug 89 13:36:15 GMT Sender: news@axion.bt.co.uk Reply-To: ntitley@axion.bt.co.uk Lines: 23 Organisation: British Telecom Research Labs, Martlesham Heath, IPSWICH UK There is a bug in xmh which causes the `ReplyInsertFilter' function not to work on System V. The bug is in the function `ExecMsgInsertAssoc' which is to be found in module `msg.c'. It is caused by the difference in behaviour in sprintf between BSD and System V. The following diff fixes the problem 772,774d771 < sprintf(command, "%s %s", < app_resources.defInsertFilter, < MsgFileName(scrn->assocmsg)); 777c774,776 < argv[2] = command; --- > argv[2] = (char*)sprintf(command, "%s %s", > app_resources.defInsertFilter, > MsgFileName(scrn->assocmsg)); Email: NTitley@axion.bt.co.uk Snail: British Telecom Research labs, Martlesham Heath, Ipswich, Suffolk, UK "Well, I'm disenchanted too. We're all disenchanted." (James Thurber)