Skip to content

Commit 648d9c1

Browse files
committed
Merge branch 'mw/symlinks'
A finishing touch fix to a new change already in 'master'. * mw/symlinks: setup: fix windows path buffer over-stepping
2 parents 06229a6 + 6127ff6 commit 648d9c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int abspath_part_inside_repo(char *path)
2929
return -1;
3030
wtlen = strlen(work_tree);
3131
len = strlen(path);
32-
off = 0;
32+
off = offset_1st_component(path);
3333

3434
/* check if work tree is already the prefix */
3535
if (wtlen <= len && !strncmp(path, work_tree, wtlen)) {
@@ -45,7 +45,7 @@ static int abspath_part_inside_repo(char *path)
4545
off = wtlen;
4646
}
4747
path0 = path;
48-
path += offset_1st_component(path) + off;
48+
path += off;
4949

5050
/* check each '/'-terminated level */
5151
while (*path) {

0 commit comments

Comments
 (0)