[comp.mail.mh] Bug in xmh

ntitley@cocoa.axion.bt.co.uk (Nigel Titley) (08/04/89)

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)