From eb29d37be71039bffaaf3b443c6756d2d69d8715 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 7 Apr 2017 13:03:55 +0100 Subject: [PATCH] [Minor] Use memmove for overlapping memory --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index b46009794..24c5e730c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -3713,7 +3713,7 @@ rspamd_http_normalize_path_inplace (gchar *path, gsize len, gsize *nlen) else { /* We have something like bla../, so we need to copy it as is */ if (o > path && dot && p > dot) { - memcpy (o, dot, p - dot); + memmove (o, dot, p - dot); o += p - dot; } -- 2.39.5