Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!jmsellens From: jmsellens@watmath.UUCP (John M Sellens) Newsgroups: net.news Subject: Re: weirdness in rotated net.jokes - The Fix is Trivial Message-ID: <14229@watmath.UUCP> Date: Fri, 3-May-85 02:39:28 EDT Article-I.D.: watmath.14229 Posted: Fri May 3 02:39:28 1985 Date-Received: Fri, 3-May-85 05:38:22 EDT References: <1205@amdcad.UUCP> Organization: U of Waterloo, Ontario Lines: 20 Keywords: 2.10.2 Postnews.c bug Subject lines get doubled because postnews tries to use the same string for two things at once. Go to postnews.c, look for this addyes() call, add declaration of jbuf (joke buf, not John buf :-) ) and change references to buf to jbuf. if (ngmatch(newsgroups, "all.jokes")) { if (askyes("Could this be offensive to anyone? ","")) { char jbuf[BUFLEN]; /* ADD THIS LINE */ getpr("Whom might it offend? ", group); /* v-- add that j */ sprintf(jbuf," - offensive to %s (ROT13)",group); modify_article(tempfname, "Subject: ", jbuf, "append"); /* and this one too!!! ----^ */ encode(tempfname); } } John