search for: text_chars

Displaying 1 result from an estimated 1 matches for "text_chars".

Did you mean: get_chars
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...l = (((readline_len-2) > strlen(line))? strlen(line): (readline_len-2)); *** src/modules/gnome/gtkconsole.c.orig Wed Mar 20 18:24:41 2002 --- 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); !...