fix regression from last commit - stagit-gopher - A git gopher frontend. (mirro… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 2d8eb85f01fdb97ab76c538b868128db4c3e99f0 | |
parent 9328d2690e118127bcaa5cf9f665d8e7711f7a03 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 3 May 2016 20:28:09 +0200 | |
fix regression from last commit | |
Diffstat: | |
M stagit.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/stagit.c b/stagit.c | |
@@ -708,7 +708,7 @@ writeblob(git_object *obj, const char *fpath, const char *f… | |
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(tm… | |
errx(1, "path truncated: '../%s'", tmp); | |
p++; |