diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |