diff --git a/src/util.c b/src/util.c index d23ae4c3f..c9a8e5fe9 100644 --- a/src/util.c +++ b/src/util.c @@ -82,7 +82,7 @@ Exit: } if (len >= 0) { - memcpy(buffer, startp, len); + memmove(buffer, startp, len); buffer[len] = 0; } return result; @@ -140,7 +140,7 @@ Exit: } if (len >= 0) { - memcpy(buffer, path, len); + memmove(buffer, path, len); buffer[len] = 0; } return result;