From f021df58246b5cb9b1312e5339f484462ba94b02 Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Mon, 18 Jul 2011 18:12:31 -0700 Subject: Specify text or binary mode in every start_writing_to_stdio_file call --- src/or/rephist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rephist.c') diff --git a/src/or/rephist.c b/src/or/rephist.c index b7341f3c0d..24447004ef 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -2500,7 +2500,7 @@ rep_hist_buffer_stats_write(time_t now) if (check_private_dir(statsdir, CPD_CREATE, get_options()->User) < 0) goto done; filename = get_datadir_fname2("stats", "buffer-stats"); - out = start_writing_to_stdio_file(filename, OPEN_FLAGS_APPEND, + out = start_writing_to_stdio_file(filename, OPEN_FLAGS_APPEND | O_TEXT, 0600, &open_file); if (!out) goto done; -- cgit v1.2.3-54-g00ecf