HOLSTEGE@Cit-20@sri-unix (08/15/82)
Date: 2 Aug 1982 1312-PDT
Below is a fix to uucp. This is not the problen I was referring to
in my previous request; that still stands.
-------- routine "cntrl" in "cntrl.c" (around line 147) ---------
ASSERT(i > 4, "ARG COUNT - %d\n", i);
/*
* [EJH] The following caused core dumps because W_DFILE (wrkvec[5])
* was 0 in some cases when W_TYPE was R.
* The above ASSERT guarantees 4 elements in vrkvec,
* the below sprintf assumes 6.
*
sprintf(msg, " %s %s %s %s %s %s",
W_FILE1, W_FILE2, W_USER,
W_OPTNS, W_DFILE, W_MODE);
*
* Use this instead.
*/
{
int k;
msg[0] = '\0';
for (k=1; k<i; k++) {
strcat(msg, " ");
strcat(msg, wrkvec[k]);
}
}
/*
* End [EJH]
*/
-----------------------------------------------------------------
-------