From 3ab05cfe38eb74c63177571e063e3b7fbe27ad19 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sun, 1 Mar 2009 00:08:44 -0800 Subject: [PATCH] No freopen(NULL,...). --- src/ChangeLog | 6 ++++++ src/main.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 59c60980..854f75db 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-02-27 Gisle Vanem + + * main.c (main): "freopen (NULL,.." causes an assertion in MSVC + debug-mode. I.e. NULL isn't legal. But the "CONOUT$" device works + fine. + 2009-02-21 Steven Schubiger * http.c (http_loop): When a document is written to diff --git a/src/main.c b/src/main.c index 02ecb1d6..7c921b77 100644 --- a/src/main.c +++ b/src/main.c @@ -1124,7 +1124,7 @@ for details.\n\n")); { #ifdef WINDOWS FILE *result; - result = freopen (NULL, "wb", stdout); + result = freopen ("CONAIR$", "wb", stdout); if (result == NULL) { logputs (LOG_NOTQUIET, _("\