From e5ec5dcb85d7417669bf035105a45f538f146525 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Sat, 10 May 2003 21:40:01 +0000 Subject: Back out libreadline changes, this breaks static build (I.E. vax). changes are nontrivial to fix. Will return when static build works. --- gnu/lib/libreadline/readline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/lib/libreadline/readline.c') diff --git a/gnu/lib/libreadline/readline.c b/gnu/lib/libreadline/readline.c index 5ccc001748a..2c6aef68f48 100644 --- a/gnu/lib/libreadline/readline.c +++ b/gnu/lib/libreadline/readline.c @@ -341,7 +341,7 @@ readline_internal_teardown (eof) entry = replace_history_entry (where_history (), the_line, (histdata_t)NULL); _rl_free_history_entry (entry); - strlcpy (the_line, temp, rl_line_buffer_len); + strcpy (the_line, temp); free (temp); } @@ -1865,7 +1865,7 @@ maybe_unsave_line () if (line_len >= rl_line_buffer_len) rl_extend_line_buffer (line_len); - strlcpy (the_line, saved_line_for_history->line, rl_line_buffer_len); + strcpy (the_line, saved_line_for_history->line); rl_undo_list = (UNDO_LIST *)saved_line_for_history->data; _rl_free_history_entry (saved_line_for_history); saved_line_for_history = (HIST_ENTRY *)NULL; @@ -1948,7 +1948,7 @@ rl_get_next_history (count, key) if (line_len >= rl_line_buffer_len) rl_extend_line_buffer (line_len); - strlcpy (the_line, temp->line, rl_line_buffer_len); + strcpy (the_line, temp->line); rl_undo_list = (UNDO_LIST *)temp->data; rl_end = rl_point = strlen (the_line); #if defined (VI_MODE) @@ -2005,7 +2005,7 @@ rl_get_previous_history (count, key) if (line_len >= rl_line_buffer_len) rl_extend_line_buffer (line_len); - strlcpy (the_line, temp->line, rl_line_buffer_len); + strcpy (the_line, temp->line); rl_undo_list = (UNDO_LIST *)temp->data; rl_end = rl_point = line_len; -- cgit v1.2.3