Thread View: gnu.utils.bug
1 messages
1 total messages
Started by mycroft
Sat, 01 Aug 1992 05:59
gawk: printf() running off end of array
Author: mycroft
Date: Sat, 01 Aug 1992 05:59
Date: Sat, 01 Aug 1992 05:59
27 lines
1124 bytes
1124 bytes
(Ignore my previous diff. This seems like a better solution.) Sat Aug 1 01:57:59 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 04:30:28 1991 --- builtin.c Sat Aug 1 01:54:23 1992 *************** *** 248,254 **** emalloc(obuf, char *, 120, "do_sprintf"); osiz = 120; ! ofre = osiz; olen = 0; sfmt = tree_eval(tree->lnode); sfmt = force_string(sfmt); --- 248,254 ---- emalloc(obuf, char *, 120, "do_sprintf"); osiz = 120; ! ofre = osiz-1; /* Leave room for null terminator. */ olen = 0; sfmt = tree_eval(tree->lnode); sfmt = force_string(sfmt);
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