git://git.exim.org
/
users
/
heiko
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lsearch ret=full
[users/heiko/exim.git]
/
src
/
src
/
lookups
/
lsearch.c
diff --git
a/src/src/lookups/lsearch.c
b/src/src/lookups/lsearch.c
index 4da422e9eb51e1e17f945a45d2638a4108029855..10927dd8270f37e30ffd285475a4c2c39a6b4511 100644
(file)
--- 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)
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 */
}
/* Otherwise it is terminated by a colon or white space */