From: Wolf Vollprecht Date: Thu, 8 Jul 2021 07:13:19 +0000 (+0200) Subject: use memmove for overlapping regions X-Git-Tag: 0.7.20~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F460%2Fhead;p=thirdparty%2Flibsolv.git use memmove for overlapping regions --- diff --git a/src/conda.c b/src/conda.c index 21ad6bfb..6f6a65a6 100644 --- a/src/conda.c +++ b/src/conda.c @@ -670,7 +670,7 @@ pool_conda_matchspec(Pool *pool, const char *name) if (build) { *p++ = ' '; - memcpy(p, build, buildend - build); + memmove(p, build, buildend - build); p += buildend - build; } evrid = pool_strn2id(pool, version, p - version, 1);