diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2003-05-10 21:40:01 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2003-05-10 21:40:01 +0000 |
commit | e5ec5dcb85d7417669bf035105a45f538f146525 (patch) | |
tree | af34ea162aad1e34381c11da590e8a12b6d75a9c /gnu/lib/libreadline/readline.c | |
parent | 6f41679e5b646ab8a07115715935afb174abffae (diff) |
Back out libreadline changes, this breaks static build (I.E. vax).
changes are nontrivial to fix. Will return when static build works.
Diffstat (limited to 'gnu/lib/libreadline/readline.c')
-rw-r--r-- | gnu/lib/libreadline/readline.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |