From 23efdc63b5e4d60b9a183fb72c8994de80aa2717 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 22 May 2009 09:49:27 +0000 Subject: [PATCH] * don't use memcpy on overlapping operations --- libcitadel/debian/changelog | 6 ++++++ libcitadel/lib/tools.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.30.2