Fix lsearch ret=full
[users/heiko/exim.git] / src / src / lookups / lsearch.c
index 4da422e9eb51e1e17f945a45d2638a4108029855..10927dd8270f37e30ffd285475a4c2c39a6b4511 100644 (file)
@@ -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 */