summaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorBjorn Sandell <biorn@cvs.openbsd.org>2005-10-19 07:37:06 +0000
committerBjorn Sandell <biorn@cvs.openbsd.org>2005-10-19 07:37:06 +0000
commite556bc702e1c69168cecccaeb2c35dd58e0444e3 (patch)
tree24c2b8564ec187145483bba17a36cd3f943a6410 /gnu/lib
parentde4c857dc9ebc8a366b46b50fa95fb0b5198b7e9 (diff)
strcpy -> strlcpy
ok beck@
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libreadline/isearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libreadline/isearch.c b/gnu/lib/libreadline/isearch.c
index 5b40d201ecb..31d43d4779f 100644
--- a/gnu/lib/libreadline/isearch.c
+++ b/gnu/lib/libreadline/isearch.c
@@ -330,7 +330,7 @@ rl_search_history (direction, invoking_key)
{
search_string_size = 64 + last_isearch_string_len;
search_string = (char *)xrealloc (search_string, search_string_size);
- strcpy (search_string, last_isearch_string);
+ strlcpy (search_string, last_isearch_string, search_string_size);
search_string_index = last_isearch_string_len;
rl_display_search (search_string, reverse, -1);
break;