git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit 9d4370c2fd68df06c0e6f4ac4eae0b71696c1ef2 parent d736264ab6cd808cf48054d6a46a02b728b2a060 Author: Hiltjo Posthuma <hiltjo@codemadness.org> 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 *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++;