Merge branch 'ar/maint-mksnpath' into maint
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index 092ce57190cc75882a3766c9aee1df719da8a3d6..eb24017535f944a2c5dbc46663c02937cff69cd3 100644 (file)
--- a/path.c
+++ b/path.c
@@ -402,7 +402,7 @@ int normalize_absolute_path(char *buf, const char *path)
                        goto next;
                }
 
-               memcpy(dst, comp_start, comp_len);
+               memmove(dst, comp_start, comp_len);
                dst += comp_len;
        next:
                comp_start = comp_end;