Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site denelcor.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!denelcor!lmc
From: lmc@denelcor.UUCP (Lyle McElhaney)
Newsgroups: net.bugs.uucp
Subject: zero length strings in conn.c
Message-ID: <312@denelcor.UUCP>
Date: Wed, 8-Feb-84 16:32:16 EST
Article-I.D.: denelcor.312
Posted: Wed Feb  8 16:32:16 1984
Date-Received: Fri, 10-Feb-84 03:34:35 EST
Organization: Denelcor, Aurora, CO
Lines: 21

When using the FANCYARGS variable in getargs.c (it allows ^? escapes and
quoted strings in L.sys descriptions) uucico will hang when it tries to
send &/! receive a null length string (of the form ""). While expect and
sendthem check explicitly for "", the FANCYARGS removes the quotes and
the null string remaining is *not* checked. To fix change line 444 in
conn.c:

	if (strcmp (str, "\"\"") == SAME) {

to

	if (strlen (str) == 0 || strcmp (str, "\"\"") == SAME) {

and add just before line 509:

	if (strlen (str) == 0) return;

These fixes should not hurt even if FANCYARGS is not used.
-- 
		Lyle McElhaney
		(hao,brl-bmd,nbires,csu-cs,scgvaxd)!denelcor!lmc