This was pointed out by address sanitizer.

Signed-off-by: Martin Storsjo <[email protected]>
---
 mingw-w64-tools/widl/src/pathtools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-tools/widl/src/pathtools.c 
b/mingw-w64-tools/widl/src/pathtools.c
index c236c7a8..72ad6071 100644
--- a/mingw-w64-tools/widl/src/pathtools.c
+++ b/mingw-w64-tools/widl/src/pathtools.c
@@ -251,7 +251,7 @@ simplify_path(char * path)
   for (i = 0; i < n_toks; ++i)
   {
     tok_size = strlen(toks[i]);
-    memcpy (result_p, toks[i], tok_size);
+    memmove (result_p, toks[i], tok_size);
     result_p += tok_size;
     if ((!i || tok_size) && ((i < n_toks - 1) || it_ended_with_a_slash == 1))
     {
-- 
2.15.1 (Apple Git-101)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to