From 3ee1f34bc4f5a4aca813b3bdb794dacb90037d5f Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 8 Oct 2022 18:08:50 +0200 Subject: [PATCH] Forgot to add break :) And that, is why you test before pushing and commiting >.< --- kernel/src/std/stdio.cpp | 1 + libs/libc/src/printf.cpp | 1 + 2 files changed, 2 insertions(+) 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*);