projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e5e218
)
fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 7 May 2016 11:52:42 +0000
(13:52 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 7 May 2016 11:52:42 +0000
(13:52 +0200)
... the loop was simplified, but forgot to remove p++ (double used) while
rebasing the change.
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index d4dd7a5dda9c7a3258d8be3308fcc930a9c63b3e..61804af1623d0a7e8ac6819495bdfdcfbcc3803c 100644
(file)
--- 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;