From:	AITGW::"G.Huston%AARNET.EDU.AU@VM1.NoDak.EDU" "Geoff Huston" 28-NOV-1991 14:40:39.32
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	$NEWS extract/dir error (fwd)

Received: by AITGW.DECnet (utk-mail11 v1.5) ; Thu, 28 Nov 91 14:39:40 EST
Received: from vm1.NoDak.edu by aitgw.ge.com (5.65/GE Gateway 1.4)
	id AA20716; Thu, 28 Nov 91 14:39:26 -0500
Message-Id: <9111281939.AA20716@aitgw.ge.com>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 1696; Thu, 28 Nov 91 13:38:26 CST
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 8442; Thu, 28 Nov 91 13:37:18 CST
Date:         Fri, 29 Nov 1991 06:13:24 EST
Reply-To: Geoff Huston <G.Huston%AARNET.EDU.AU@VM1.NoDak.EDU>
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: Geoff Huston <G.Huston%AARNET.EDU.AU@VM1.NoDak.EDU>
Subject:      $NEWS extract/dir error (fwd)
X-To:         david@ccc.govt.nz
X-Cc:         anu-news@vm1.nodak.edu
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
> When I execute the following DCL command.
> Note: I have edited the DEBUG output to split the long lines (-'s)
>
> $ news/noscreen extract/dir=newsitems -
>         /newsgroups="comp.binaries.mac"/all cbm1.tmp
 
and it crashes in newsextract.c:
 
>         \loop_search_126\loop_search_127\%LINE 11098+60
>  11098:                      ga[og]->grp_ia[ga[og]->grp_count].itm_num);
 
 
this code is predicated by a conditional of the form:
  if (ga[og]->grp_count) ...
 
BEFORE this line you need to add
 
   if (!ga[og]->grp_ia]) map_items(og);
   if (!ga[og]->grp_ia) grp[og]->grp_count = 0;
 
 
Geoff Huston
