diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-05 13:56:14 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-05 13:56:14 +0200 |
| commit | 60cb1d10b3eb0e7966be1c40501524dc10e4c512 (patch) | |
| tree | 98eee63fa6217613807703c893a4e3cc4d2595ab /src/util.c | |
| parent | 545a6915eb7aaa8bfeed16e93090cf1360c37013 (diff) | |
| download | libgit2-60cb1d10b3eb0e7966be1c40501524dc10e4c512.tar.gz | |
Use memmove() in git__joinpath for overlapping copies
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 2f1bd2220..d23ae4c3f 100644 --- a/src/util.c +++ b/src/util.c @@ -221,7 +221,7 @@ void git__joinpath_n(char *buffer_out, int count, ...) continue; len = strlen(path); - memcpy(buffer_out, path, len); + memmove(buffer_out, path, len); buffer_out = buffer_out + len; if (i < count - 1 && buffer_out[-1] != '/') |
