X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=path.c;h=c1cb54b7b8b478c717861a0205e537ded3fbbfc9;hb=aebd173ffa7a4e67447f0157a14abde7767c54e9;hp=76e8872622e435b050f77198ef6eef6e6ff6869e;hpb=c8a4cbc23916feeae89a7c59523781e8bf8ac103;p=git.git diff --git a/path.c b/path.c index 76e887262..c1cb54b7b 100644 --- a/path.c +++ b/path.c @@ -348,7 +348,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;