Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site hao.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!hao!pag
From: pag@hao.UUCP (Peter Gross)
Newsgroups: net.news.b
Subject: 2.10.2 bug fix -- not enough space for followups
Message-ID: <1282@hao.UUCP>
Date: Thu, 29-Nov-84 01:50:50 EST
Article-I.D.: hao.1282
Posted: Thu Nov 29 01:50:50 1984
Date-Received: Fri, 30-Nov-84 07:13:14 EST
Distribution: net
Organization: High Altitude Obs./NCAR, Boulder CO
Lines: 64

I replied to an article that had lots of References and noticed that
the constructed header was trashed.  The problem turned out to be
that not enough space (BUFLEN [128 on a PDP-11] chars) was allocated
to hold the followups (in readr.c).  The header definition of followups
should probably also be increased.
Diffs follow:
*** /tmp/,RCSt1010408	Wed Nov 28 23:45:03 1984
--- readr.c	Wed Nov 28 23:42:54 1984
***************
*** 2,7
   * readr - /bin/mail and msgs interface and associated functions.
   *
   * $Log:	readr.c,v $
   * Revision 2.48  84/11/28  23:33:36  pag
   * Added Bill Sebok's NETPATH (path optimization) code
   * 

--- 2,11 -----
   * readr - /bin/mail and msgs interface and associated functions.
   *
   * $Log:	readr.c,v $
+  * Revision 2.49  84/11/28  23:41:26  pag
+  * Bug fix:  replies to articles with lots of References overflowed
+  * the local array.  Increased the size of folbuf.
+  * 
   * Revision 2.48  84/11/28  23:33:36  pag
   * Added Bill Sebok's NETPATH (path optimization) code
   * 
***************
*** 11,17
   */
  
  #ifndef lint
! static char	*RcsId = "$Header: readr.c,v 2.48 84/11/28 23:33:36 pag Exp $";
  #endif !lint
  
  #include "rparams.h"

--- 15,21 -----
   */
  
  #ifndef lint
! static char	*RcsId = "$Header: readr.c,v 2.49 84/11/28 23:41:26 pag Exp $";
  #endif !lint
  
  #include "rparams.h"
***************
*** 626,632
  	FILE *tfp;
  	char *replyname();
  	char subj[BUFLEN];
! 	char folbuf[BUFLEN];
  	struct stat statb;
  	long creatm;
  #ifdef NETPATHS

--- 630,636 -----
  	FILE *tfp;
  	char *replyname();
  	char subj[BUFLEN];
! 	char folbuf[2*BUFLEN];
  	struct stat statb;
  	long creatm;
  #ifdef NETPATHS