A Better vn Patch
Scott Garfinkle
seg at smsdpg.uu.net
Thu Feb 2 05:22:39 AEST 1989
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 = "<some article>";
hdr->from = "<somebody>";
--- 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 = "<some article>";
hdr->from = "<somebody>";
***************
*** 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);
More information about the Comp.sources.bugs
mailing list