Displaying 1 result from an estimated 1 matches for "history_buf".
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...2
--- src/modules/gnome/gtkconsole.c Wed Jul 10 16:21:30 2002
***************
*** 299,312 ****
/* add command to history */
term_ptr = strchr (text_chars, '\n');
if ((add_to_history == TRUE) && (term_ptr != NULL) && (*text_chars !=
'\n'))
! {
! history_buf = g_malloc (term_ptr - text_chars + 1);
! *term_ptr = '\0';
! strncpy (history_buf, text_chars, term_ptr - text_chars + 1);
! GTK_CONSOLE (object)->history =
! g_list_prepend (GTK_CONSOLE (object)->history, history_buf);
! GTK_CONSOLE (object)->history_num...