Fix fopencookie open flags

This commit is contained in:
Vadim Kaushan 2020-09-10 23:35:50 +03:00
parent aa859586a9
commit d376982b4c

View File

@ -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,