From:	CSBVAX::CSBVAX::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 27-FEB-1989 12:11
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Re: ANU News V5.7 -- problem with PRINT, possible bug


Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Sat, 25 FEB 89 15:01:06 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Sat, 25 Feb 89 14:57:33 PST
Received: by ucbvax.Berkeley.EDU (5.61/1.34)
	id AA21249; Sat, 25 Feb 89 13:29:10 -0800
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 21 Feb 89 23:49:10 GMT
From: munnari!otc!metro!basser!usage!ccadfa!anucsd!csc3!csc!gih900@uunet.uu.net  (Geoff Huston)
Organization: VMS NEWS V5.2
Subject: Re: ANU News V5.7 -- problem with PRINT, possible bug
Message-Id: <1681@csc.anu.oz>
References: <228@muvms1.bitnet>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

In article <228@muvms1.bitnet>, mcguffey@muvms1.bitnet (Michael McGuffey) writes:
> 	I've found a  bug in ANU News V5.7 (running on VMS5.0-2).
> I have SET PROFILE/PRINT=" /que=ln03a/nowait/notify" but when I type "print"
> at the prompt I get an access violation error and stack dump.  If I type
> "print " (space after the t) everything works fine.  I've tried several
> combinations of switches but haven't been able to not get the dump.
> Anyone else run across this problem?

The problem (bug) is in NEWSEXTRACT.C, function do_print():

do_print()
{
    int fd, get_input();
    char full_name[256], retry_command[512], *c, *x;

    more_submit = 1;
    append_ofile = n_extracted = 0;
    fhead = flast = 0;

    x = response;
    if (*print_constant) {
        c = strchr(response,'/');
            /* null and isspace are two entirely different things ! */
        while (*x && !isspace(*x)) x++;

        ...
        }
}

-- 
Geoff Huston,
Computer Services Centre, Australian Nationa University

gih900@csc.anu.oz                           psi%(0505)26244003211::gih900

