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:
9328d26
)
fix regression from last commit
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 3 May 2016 18:28:09 +0000
(20:28 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 3 May 2016 18:28:09 +0000
(20:28 +0200)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index d318c13e02ad1c38f7383c1f57a95a9a5b2c7691..85b782aa9f0762717baac13aeb9e2a936b98f519 100644
(file)
--- a/
stagit.c
+++ b/
stagit.c
@@
-708,7
+708,7
@@
writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
if (mkdirp(d))
return -1;
- for (p = fpath; *p; p++) {
+ for (p = fpath
, tmp[0] = '\0'
; *p; p++) {
if (*p == '/' && strlcat(tmp, "../", sizeof(tmp)) >= sizeof(tmp))
errx(1, "path truncated: '../%s'", tmp);
p++;