summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-30 14:14:28 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-30 14:14:28 -0300
commit5130612773003d6f7e7d658f7162a4da84fadf69 (patch)
tree11d7182d03d2d9c9a776092b5a12f09bfa4bd573 /git.c
parent4b76d921e6a1c576ed063d465725f0e8770ecbdd (diff)
git: Replace `filename` with `path` in `create_file()`
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;
}