From b690a53ed619f5adfa532bf8cc9ab13c1c806b3c Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 2 Aug 2020 15:25:43 +0100 Subject: Fix lsearch ret=full --- src/src/lookups/lsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/lookups/lsearch.c b/src/src/lookups/lsearch.c index 4da422e9e..10927dd82 100644 --- a/src/src/lookups/lsearch.c +++ b/src/src/lookups/lsearch.c @@ -154,7 +154,7 @@ for (BOOL this_is_eol, last_was_eol = TRUE; linekeylength = t - buffer; if (*s) s++; /* Past terminating " */ if (ret_full) - Ustrcpy(t, s); /* copy the rest of line does also */ + memmove(t, s, Ustrlen(s)+1); /* copy the rest of line also */ } /* Otherwise it is terminated by a colon or white space */ -- cgit v1.2.3