Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!pyramid!prls!mips!dce From: dce@mips.COM (David Elliott) Newsgroups: comp.mail.mh Subject: Re: questions about slocal Keywords: slocal maildelivery Message-ID: <9561@dunkshot.mips.COM> Date: 8 Dec 88 18:33:39 GMT References: <78@adobe.COM> Reply-To: dce@mips.COM (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 25 There is a bug in MH up to and including 6.6. The routine strindex (source in sbr/strindex.c) may be given a NULL pointer and try to use it. The following patch fixes the problem (it's made slocal work for me for the past couple of years): *** strindex.c.orig Thu Aug 25 07:47:36 1988 --- strindex.c Wed Aug 24 15:48:14 1988 *************** *** 7,12 **** --- 7,16 ---- { register char *p; + if (p1 == 0 || p2 == 0) { + return (-1); + } + for (p = p2; *p; p++) if (uprf (p, p1)) return (p - p2); -- David Elliott dce@mips.com or {ames,prls,pyramid,decwrl}!mips!dce "Did you see his eyes? Did you see his crazy eyes?" -- Iggy (who else?)