diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 13:03:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 13:03:55 +0100 |
commit | eb29d37be71039bffaaf3b443c6756d2d69d8715 (patch) | |
tree | eec9367e61c49df454d20c1c928aeca21ea0ef0f /src/libutil/http.c | |
parent | d3385c8130e4af64e5b2a1648683f6ef6c279849 (diff) | |
download | rspamd-eb29d37be71039bffaaf3b443c6756d2d69d8715.tar.gz rspamd-eb29d37be71039bffaaf3b443c6756d2d69d8715.zip |
[Minor] Use memmove for overlapping memory
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |