Skip to content

Commit

Permalink
Merge branch 'mw/symlinks'
Browse files Browse the repository at this point in the history
A finishing touch fix to a new change already in 'master'.

* mw/symlinks:
  setup: fix windows path buffer over-stepping
  • Loading branch information
gitster committed May 2, 2014
2 parents 06229a6 + 6127ff6 commit 648d9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static int abspath_part_inside_repo(char *path)
return -1;
wtlen = strlen(work_tree);
len = strlen(path);
off = 0;
off = offset_1st_component(path);

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

/* check each '/'-terminated level */
while (*path) {
Expand Down

0 comments on commit 648d9c1

Please sign in to comment.