diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-05-20 21:19:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-05-20 21:19:26 +0000 |
commit | a3e65aa8c0531a5caae17969fadda8629df02bf6 (patch) | |
tree | 872538cb035e70c3266c628c71ce751db3f74dbf | |
parent | 43a905a646bdef7c80946ab2e70af87a718f3ca5 (diff) |
Correctly copy text into line buffer.
ok miod@
-rw-r--r-- | gnu/lib/libreadline/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libreadline/text.c b/gnu/lib/libreadline/text.c index 81b9da3dc2f..549fdb7f00c 100644 --- a/gnu/lib/libreadline/text.c +++ b/gnu/lib/libreadline/text.c @@ -198,7 +198,7 @@ rl_replace_line (text, clear_undo) len = strlen (text); if (len >= rl_line_buffer_len) rl_extend_line_buffer (len); - strlcpy (rl_line_buffer, text, len); + strlcpy (rl_line_buffer, text, rl_line_buffer_len); rl_end = len; if (clear_undo) |