From: utzoo!decvax!cca!hplabs!kg
Newsgroups: net.bugs.uucp
Title: Bug in cntrl.c
Article-I.D.: hplabs.621
Posted: Sun Aug  8 12:30:55 1982
Received: Tue Aug 10 00:46:57 1982

Uucp's have never worked for us.  They've always caused a Segmentation
Fault while uucico was running.  Adb was no help, it just listed a
million sigtramps and aborts.  I Finally tracked down the problem.  The
work file contained only 5 fields.  But uucico expected a file of 6
fields.  I don't know if this is an error in the program that writes
the file or reads the file, but for robustness, I fixed the reader.
(As you can see below, it checks for "at least 5 items" and then goes
merrily along and uses 6).

Here's the fix.  The added lines marked with <<<<'s.
Around line 150 or so in cntrl.c...

    ASSERT(i > 4, "ARG COUNT - %d\n", i);
    if (i < 6)				<<<<<<<<
	W_MODE = "0666";		<<<<<<<<
    sprintf(msg, " %s %s %s %s %s %s",
	    W_FILE1, W_FILE2, W_USER,
	    W_OPTNS, W_DFILE, W_MODE);

						Ken Greer
						HP Labs