Thread View: gnu.utils.bug
1 messages
1 total messages
Started by mycroft
Sat, 01 Aug 1992 05:38
gawk: printf() running off end of array
Author: mycroft
Date: Sat, 01 Aug 1992 05:38
Date: Sat, 01 Aug 1992 05:38
28 lines
1158 bytes
1158 bytes
Fri Jul 31 22:42:37 1992 Charles Hannum (mycroft@hal.gnu.ai.mit.edu)
* builtin.c (do_sprintf): Leave space in obuf for null added by
make_str_node.
*** builtin.c.orig Wed Jun 19 08:30:27 1991
--- builtin.c Fri Jul 31 22:35:10 1992
***************
*** 567,575 ****
}
if (carg != NULL)
warning("too many arguments supplied for format string");
! bchunk(s0, s1 - s0);
free_temp(sfmt);
! r = make_str_node(obuf, olen, ALREADY_MALLOCED);
r->flags |= TEMP;
return r;
}
--- 567,575 ----
}
if (carg != NULL)
warning("too many arguments supplied for format string");
! bchunk(s0, s1 - s0 + 1);
free_temp(sfmt);
! r = make_str_node(obuf, olen - 1, ALREADY_MALLOCED);
r->flags |= TEMP;
return r;
}
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