fix error in "code cleanup" commit 9328d2690e
... the loop was simplified, but forgot to remove p++ (double used) while rebasing the change.
This commit is contained in:
parent
6e5e218b69
commit
f63edd593d
1 changed files with 0 additions and 1 deletions
1
stagit.c
1
stagit.c
|
@ -722,7 +722,6 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
|
|||
for (p = fpath, tmp[0] = '\0'; *p; p++) {
|
||||
if (*p == '/' && strlcat(tmp, "../", sizeof(tmp)) >= sizeof(tmp))
|
||||
errx(1, "path truncated: '../%s'", tmp);
|
||||
p++;
|
||||
}
|
||||
relpath = tmp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue