Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Christopher Marshall
Wed, 29 Nov 1989 21:59
Bug in make-3.57
Author: Christopher Marshall
Date: Wed, 29 Nov 1989 21:59
Date: Wed, 29 Nov 1989 21:59
23 lines
1348 bytes
1348 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads