From 811d5f0d30b75eca08cc10358d7301d0ea5537ec Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 27 Jun 2021 10:30:19 -0400 Subject: Fixed some typos in `create_info_file()`. --- git.c | 4 ++-- 1 file 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; -- cgit v1.2.3-13-gbd6f