On Sat, 6 Feb 1999 19:16:19 +0200 (EET), [EMAIL PROTECTED] said:
> Thanks,
Here's another little one in pbbs_rcv.c that I would have thought
should have been picked up by the compiler.
This is a fix for the 'segmentation fault' (discoverer G4APL)
that occurs when gating a bulletin PBBS -> NNTP
Oh, BTW, Paul (APL) instigated and is testing some code which handles
NNTP "Distribution:" headers and maps both ways between say,
"Distribution: world" <> "@WWW", "Distribution: europe" <> "@EU"
etc. when gating NNTP <> PBBS
Interested ?
73, G.
*** pbbs_rcv.c.1 Sun Feb 7 00:37:31 1999
--- pbbs_rcv.c Sun Feb 7 00:37:37 1999
***************
*** 386,392 ****
say(L_ROUTING, "$%s %s > %s => %s %s > %s",
pb.bid, pbsrc, pbdst, mid, src, newsgroups);
! snprintf(tfname, PATHLEN, "%s/%i.%i.%s.tmp", spooldir, tp.time,
tp.millitm, msgc);
if (!(tf = fopen(tfname, "w"))) {
say(L_ERR, "Cannot open temporary file %s: %s. Message lost.",
tfname, strerror(errno));
--- 386,392 ----
say(L_ROUTING, "$%s %s > %s => %s %s > %s",
pb.bid, pbsrc, pbdst, mid, src, newsgroups);
! snprintf(tfname, PATHLEN, "%s/%i.%i.%i.tmp", spooldir, tp.time,
tp.millitm, msgc);
if (!(tf = fopen(tfname, "w"))) {
say(L_ERR, "Cannot open temporary file %s: %s. Message lost.",
tfname, strerror(errno));