From owner-taylor-uucp@gnu.ai.mit.edu Tue Apr 28 03:36:17 1992
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil])
Received: from fuug.fi by dolphin.funet.fi with SMTP id AA12008
  (5.65c/IDA-1.4.3 for ojala); Tue, 28 Apr 1992 03:36:13 +0300
Received: from wookumz.gnu.ai.mit.edu by fuug.fi with SMTP id AA28362
  (5.65c/IDA-1.4.4 for <taylor-uucp-list@fuug.fi>); Tue, 28 Apr 1992 03:33:10 +0300
Received: by wookumz.gnu.ai.mit.edu (5.65/4.0)
	id <AA08124@wookumz.gnu.ai.mit.edu>; Mon, 27 Apr 92 20:05:22 -0400
Received: from relay1.UU.NET by wookumz.gnu.ai.mit.edu (5.65/4.0) with SMTP
	id <AA08119@wookumz.gnu.ai.mit.edu>; Mon, 27 Apr 92 20:05:17 -0400
Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay1.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA21691; Mon, 27 Apr 92 20:05:15 -0400
Received: from airs.UUCP by uunet.uu.net with UUCP/RMAIL
	(queueing-rmail) id 200452.11576; Mon, 27 Apr 1992 20:04:52 EDT
Received: by comton.airs.com (5.57/AIRS1.0)
	id AA02373; Mon, 27 Apr 92 18:59:31 -0400
Message-Id: <9204272259.AA02373@comton.airs.com>
In-Reply-To: <199204271615.AA26330@fidata.fi>; from "Petri Helenius" at Apr 27, 92 6:15 pm
X-Mailer: ELM [version 2.3 PL11]
From: ian@airs.com (Ian Lance Taylor)
To: pete@fidata.fi
Cc: taylor-uucp@gnu.ai.mit.edu
Subject: Re: another BUG ;-)
Date: Mon, 27 Apr 92 18:59:30 -0400

Petri Helenius writes:

>   If the "" from the below line is not existing the uucico and uuchk
> dump core in bnu_read_config(). I think it is not a proper way
> to report an configuration error ;-)
> 
> #
> # Example:
> #	cuuxb Any ACU 1200 chicago8101242 in:--in: nuucp word: panzer
> fidata Never TCP 2540 2540 ""

Another dumb bug.  Here is a patch.

diff -c -r1.37 bnu.c
*** 1.37	1992/04/16 05:15:00
--- bnu.c	1992/04/23 03:19:38
***************
*** 597,603 ****
  	      if (qset->zphone != NULL)
  		{
  		  qset->schat.zchat = strtok ((char *) NULL, "");
! 		  qset->schat.zchat += strspn (qset->schat.zchat, " \t");
  		}
  	    }
  	}
--- 600,607 ----
  	      if (qset->zphone != NULL)
  		{
  		  qset->schat.zchat = strtok ((char *) NULL, "");
! 		  if (qset->schat.zchat != NULL)
! 		    qset->schat.zchat += strspn (qset->schat.zchat, " \t");
  		}
  	    }
  	}
***************
*** 1346,1352 ****
        else
  	{
  	  qdialer->schat.zchat = strtok ((char *) NULL, "");
! 	  qdialer->schat.zchat += strspn (qdialer->schat.zchat, " \t");
  	}
  
        (void) fmulti_close (qmulti);
--- 1350,1357 ----
        else
  	{
  	  qdialer->schat.zchat = strtok ((char *) NULL, "");
! 	  if (qdialer->schat.zchat != NULL)
! 	    qdialer->schat.zchat += strspn (qdialer->schat.zchat, " \t");
  	}
  
        (void) fmulti_close (qmulti);

-- 
Ian Taylor                     ian@airs.com                    uunet!airs!ian
First person to identify this quote wins a free e-mail message:
``Do you make a grievance of weighing so many pounds only, instead of three
  hundred?  Then why fret about living so many years only, instead of more?''

