Explorar o código

Fix fopencookie open flags

Vadim Kaushan %!s(int64=5) %!d(string=hai) anos
pai
achega
d376982b4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/tty_uart.c

+ 1 - 1
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,