cmft552@HERMES.CHPC.UTEXAS.EDU (Christopher Marshall) (11/30/89)
Make crashed in the routine free() when using the shell function. The problem was traced to a pointer being incremented and then passed to the free() routine. The context diffs to function.c are as follows: *** function.c1.1 Wed Nov 29 15:47:39 1989 --- function.c1.2 Wed Nov 29 15:48:07 1989 *************** *** 417,421 **** if (i > 0 && buffer[i - 1] == '\n') buffer[--i] = '\0'; ! for (p = buffer; (p = index (buffer, '\n')) != 0; buffer = ++p) *p = ' '; o = variable_buffer_output (o, buffer, i); --- 417,421 ---- if (i > 0 && buffer[i - 1] == '\n') buffer[--i] = '\0'; ! for (p = buffer; (p = index (buffer, '\n')) != 0; ) *p = ' '; o = variable_buffer_output (o, buffer, i); Christopher Marshall cmft552@hermes.chpc.utexas.edu