summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 579df11..16f7810 100644
--- a/git.c
+++ b/git.c
@@ -51,7 +51,7 @@ file *create_file(const char *root, const char *filename) {
file *f = calloc(1, sizeof(file));
sprintf(path, "%s/%s", root, filename);
f->name = (char *)filename;
- f->buf = read_file(filename, &buf_size);
+ f->buf = read_file(path, &buf_size);
return f;
}