summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init-db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init-db.c b/init-db.c
index 902bdfa..da2bc8f 100644
--- a/init-db.c
+++ b/init-db.c
@@ -154,6 +154,7 @@ static void copy_templates(const char *git_dir, int len, char *template_dir)
}
memcpy(path, git_dir, len);
+ path[len] = 0;
copy_templates_1(path, len,
template_path, template_len,
dir);