summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2004-05-20 21:19:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2004-05-20 21:19:26 +0000
commita3e65aa8c0531a5caae17969fadda8629df02bf6 (patch)
tree872538cb035e70c3266c628c71ce751db3f74dbf
parent43a905a646bdef7c80946ab2e70af87a718f3ca5 (diff)
Correctly copy text into line buffer.
ok miod@
-rw-r--r--gnu/lib/libreadline/text.c2
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)