From d376982b4c58519963aca8fa8e4cf3edbef265aa Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Thu, 10 Sep 2020 23:35:50 +0300 Subject: [PATCH] Fix fopencookie open flags --- core/tty_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tty_uart.c b/core/tty_uart.c index 5a2b360c..e4e729d7 100644 --- a/core/tty_uart.c +++ b/core/tty_uart.c @@ -41,7 +41,7 @@ bool register_tty_uart() { return false; } - FILE* fp = fopencookie(NULL, "w+", (cookie_io_functions_t) { + FILE* fp = fopencookie(NULL, "w", (cookie_io_functions_t) { .read = NULL, .write = stdout_write, .seek = NULL,