From 709dc764f6d9874cc265ed24bd2b929b9b6949b8 Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Fri, 20 Oct 2023 12:31:04 +0300 Subject: [PATCH] no need for strlcpy() here This removes last strlcpy() call, but strlcat() ones are still there. --- oicb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oicb.c b/oicb.c index 9b42e63..18aeba2 100644 --- a/oicb.c +++ b/oicb.c @@ -164,7 +164,7 @@ restore_rl(void) { } else { len = strlen(o_rl_buf); rl_extend_line_buffer(len+2); - (void) strlcpy(rl_line_buffer, o_rl_buf, len+1); + memcpy(rl_line_buffer, o_rl_buf, len+1); rl_point = o_rl_point; rl_mark = o_rl_mark; rl_redisplay();