Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!vsi1!wyse!uunet!smsdpg!seg From: seg@smsdpg.uu.net (Scott Garfinkle) Newsgroups: comp.sources.bugs Subject: A Better vn Patch Message-ID: <190@smsdpg.uu.net> Date: 1 Feb 89 19:22:39 GMT Reply-To: seg@smsdpg.uu.net (Scott Garfinkle) Organization: SMS Data Products Group, Inc. Lines: 50 Recently a posted a patch to prevent vn from bombing under some circumstances (e.g. when doing a followup from inside a digest). To my chagrin, that patch wasn't sufficient. I believe this patch to be sufficient. Please reverse the original patch (i.e. remove the extra test and set of Pool) and apply the following: ---------------------------------------- *** std.c- Wed Feb 1 14:18:12 1989 --- std.c Wed Feb 1 14:17:28 1989 *************** *** 1216,1222 **** ** few assignments, and the "Priv" declaration are only needed ** with some define settings. Not worth ifdef'ing. */ ! Pool = str_tpool(100); hdr->artid = ""; hdr->from = ""; --- 1216,1223 ---- ** few assignments, and the "Priv" declaration are only needed ** with some define settings. Not worth ifdef'ing. */ ! if(Pool == NULL) /* may have been inited below, already... */ ! Pool = str_tpool(100); hdr->artid = ""; hdr->from = ""; *************** *** 1462,1467 **** --- 1463,1472 ---- */ if (i > 1 && hdr->priv_num < 8) { + /* initialize Pool if not already done. + */ + if (Pool == NULL) + Pool = str_tpool(100); (hdr->priv)[hdr->priv_num] = str_tstore(Pool,ptr); ++(hdr->priv_num); } *************** *** 1511,1516 **** --- 1516,1523 ---- hdr->mail_err = NULL; ; + if (Pool == NULL) + Pool = str_tpool(100); #ifdef INLETTER hdr->mailcmd = Mailer; sprintf(buf,"%s%s",TO_head,addr);