summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-27 10:30:19 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-27 10:30:19 -0400
commit811d5f0d30b75eca08cc10358d7301d0ea5537ec (patch)
tree14c180c69a543bc5b52f64d54a52d5a6b26e4eca /git.c
parente3468285721774373c0640019c15fdb82df65e31 (diff)
Fixed some typos in `create_info_file()`.
Diffstat (limited to 'git.c')
-rw-r--r--git.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/git.c b/git.c
index 0b64f48..63fdda4 100644
--- a/git.c
+++ b/git.c
@@ -166,7 +166,7 @@ int create_info_file(pull_request *pr, const char *pr_dir) {
}
/* Open the info file. */
- fp = fopen(pr_dir, "w");
+ fp = fopen(info, "w");
/* Did we fail to open the file? */
if (fp == NULL) {
@@ -174,7 +174,7 @@ int create_info_file(pull_request *pr, const char *pr_dir) {
return 0;
}
- fwrite(buf, sizeof(char), buf_len, fp);
+ fwrite(info_buf, sizeof(char), buf_len, fp);
fclose(fp);
return 1;