From a1dcc8c47e2d09907aa18c48a97056749427b573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Sun, 11 Oct 2020 17:37:51 +0200 Subject: [PATCH] Fix print_comments when output is not stdout --- src/cli.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.cc b/src/cli.cc index 27ead5d..9141892 100644 --- a/src/cli.cc +++ b/src/cli.cc @@ -177,7 +177,7 @@ void ot::print_comments(const std::list& comments, FILE* output) has_control = true; } fwrite(local.data(), 1, local.size(), output); - putchar('\n'); + putc('\n', output); } if (info_lost) fputs("warning: Some tags have been transliterated to your system encoding.\n", stderr);