Skip to content

Commit 7c8ad2e

Browse files
authored
Merge pull request #460 from wolfv/memcpy_to_memmove
use memmove for overlapping regions
2 parents 636c89b + ccc2ec8 commit 7c8ad2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/conda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ pool_conda_matchspec(Pool *pool, const char *name)
670670
if (build)
671671
{
672672
*p++ = ' ';
673-
memcpy(p, build, buildend - build);
673+
memmove(p, build, buildend - build);
674674
p += buildend - build;
675675
}
676676
evrid = pool_strn2id(pool, version, p - version, 1);

0 commit comments

Comments
 (0)