26 lines
817 B
Diff
26 lines
817 B
Diff
From ccc2ec885a81de137c30fd0deb8c5475440e5287 Mon Sep 17 00:00:00 2001
|
|
From: Wolf Vollprecht <w.vollprecht@gmail.com>
|
|
Date: Thu, 8 Jul 2021 09:13:19 +0200
|
|
Subject: [PATCH] use memmove for overlapping regions
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/openSUSE/libsolv/commit/ccc2ec885a81de137c30fd0deb8c5475440e5287.patch
|
|
|
|
---
|
|
src/conda.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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);
|