From: Wilfried Göesgens Date: Fri, 22 May 2009 09:49:27 +0000 (+0000) Subject: * don't use memcpy on overlapping operations X-Git-Tag: v7.86~1137 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=23efdc63b5e4d60b9a183fb72c8994de80aa2717 * don't use memcpy on overlapping operations --- diff --git a/libcitadel/debian/changelog b/libcitadel/debian/changelog index f2ba88a43..46e9605d2 100644 --- a/libcitadel/debian/changelog +++ b/libcitadel/debian/changelog @@ -1,3 +1,9 @@ +libcitadel (7.60-73) unstable; urgency=low + + * soon to come release + + -- Wilfried Goesgens Tue, 17 Mar 2009 00:00:00 +0002 + libcitadel (7.50-73) unstable; urgency=low * release diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index 14cf43ec9..7d933de11 100644 --- a/libcitadel/lib/tools.c +++ b/libcitadel/lib/tools.c @@ -485,7 +485,7 @@ size_t striplt(char *buf) { } new_len = last_nonspace - first_nonspace + 1; - memcpy(buf, first_nonspace, new_len); + memmove(buf, first_nonspace, new_len); buf[new_len] = 0; return new_len; }