X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=init-db.c;h=da2bc8f42b2ea6804c79097778f3105afcd87da6;hb=1f961c196cbb475e612a4fb082b33efde71e7a03;hp=902bdfaafb53e15382c901936a1ccd2fec90f0f3;hpb=bfb73b2ebc2d50c8e14133ad15137604fc54563d;p=git.git diff --git a/init-db.c b/init-db.c index 902bdfaa..da2bc8f4 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);