aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 5c53251..9754464 100644
--- a/error.c
+++ b/error.c
@@ -506,7 +506,7 @@ redirect_stdout_stderr (const char *file, bool append)
/* open log_handle as FILE stream */
ASSERT (msgfp == NULL);
- msgfp = _fdopen (log_fd, "w");
+ msgfp = _fdopen (log_fd, "wt");
if (msgfp == NULL)
msg (M_ERR, "Error: --log redirect failed due to _fdopen");