Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'es/worktree-add'
[gitweb.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index af2a18ed7485ea83170409ce55f81473ee606221..22364636d1456795dd858b8039da3b90d32c6633 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-38,7
+38,7
@@
char *path_name(const struct name_path *path, const char *name)
}
n = xmalloc(len);
m = n + len - (nlen + 1);
-
strcpy(m, name
);
+
memcpy(m, name, nlen + 1
);
for (p = path; p; p = p->up) {
if (p->elem_len) {
m -= p->elem_len + 1;