diff --git a/kernel/src/std/stdio.cpp b/kernel/src/std/stdio.cpp index 9b1dc0b0..08819639 100644 --- a/kernel/src/std/stdio.cpp +++ b/kernel/src/std/stdio.cpp @@ -166,6 +166,7 @@ static int internal_printf(const char* format, PutString put_string_callback, ss memcpy(buffer + buffer_insert_index, result, strlen(result)); buffer_insert_index += strlen(result); if (buffer_insert_index == 1024) flush_buffer(); + break; } case 's': { const char* str = va_arg(ap, const char*); diff --git a/libs/libc/src/printf.cpp b/libs/libc/src/printf.cpp index c978c270..740cc394 100644 --- a/libs/libc/src/printf.cpp +++ b/libs/libc/src/printf.cpp @@ -249,6 +249,7 @@ static int internal_printf(const char* format, PutString put_string_callback, ss memcpy(buffer + buffer_insert_index, result, strlen(result)); buffer_insert_index += strlen(result); if (buffer_insert_index == 1024) flush_buffer(); + break; } case 's': { const char* str = va_arg(ap, const char*);