From: Vsevolod Stakhov Date: Fri, 7 Apr 2017 12:03:55 +0000 (+0100) Subject: [Minor] Use memmove for overlapping memory X-Git-Tag: 1.5.5~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb29d37be71039bffaaf3b443c6756d2d69d8715;p=rspamd.git [Minor] Use memmove for overlapping memory --- 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; }