From b228b56355ffcf4647e1fdbb3f75bfc0c83bba93 Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Tue, 6 Oct 2020 20:33:48 +0200 Subject: [PATCH] Allow %n in printf format string for MSVC --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 0b0bd4f8..fc4425b0 100644 --- a/main.c +++ b/main.c @@ -353,6 +353,10 @@ int main(int argc, char * argv []) char * homedir; #endif +#ifdef _MSC_VER + _set_printf_count_output(1); +#endif + /* * Set line buffering for file descriptors so we see stdout and stderr * properly interleaved.