diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-08-02 15:25:43 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-08-02 15:25:43 +0100 |
commit | b690a53ed619f5adfa532bf8cc9ab13c1c806b3c (patch) | |
tree | 8fe60e1b88093ff38b96ee1ded68a59fdbe6dc82 /src | |
parent | 1b9ab35f323121aabf029f0496c7227818efad14 (diff) |
Fix lsearch ret=full
Diffstat (limited to 'src')
-rw-r--r-- | src/src/lookups/lsearch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |