[net.news] weirdness in rotated net.jokes - The Fix is Trivial

jmsellens@watmath.UUCP (John M Sellens) (05/03/85)

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