ソースを参照

Fix fopencookie open flags

Vadim Kaushan 5 年 前
コミット
d376982b4c
1 ファイル変更1 行追加1 行削除
  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,