summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-05-07 13:52:42 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-05-07 13:52:42 +0200
commitf63edd593dfcaa84b30958d845fa85eaffc664b0 (patch)
tree70ccfeabeeb11959002f59c66f8b34f89ee950ed
parent6e5e218b697ffb8ff1819cbc3b8783f9a7270de2 (diff)
fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03
... the loop was simplified, but forgot to remove p++ (double used) while rebasing the change.
-rw-r--r--stagit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index d4dd7a5..61804af 100644
--- a/stagit.c
+++ b/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;