summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 732d4c2275..9513134670 100644
--- a/diff.c
+++ b/diff.c
@@ -4483,7 +4483,7 @@ void diff_flush(struct diff_options *options)
struct strbuf *msg = NULL;
msg = options->output_prefix(options,
options->output_prefix_data);
- fwrite(msg->buf, msg->len, 1, stdout);
+ fwrite(msg->buf, msg->len, 1, options->file);
}
putc(options->line_termination, options->file);
if (options->stat_sep) {