From db5c9ab859c365939af36ffe81c26473328bf39e Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Mon, 31 Jul 2023 23:40:15 -0700 Subject: [PATCH] [libc] Consume the %s format character in vsprintf Previously we were outputing a single 's' after the string. --- lib/libc/src/stdio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/src/stdio.cpp b/lib/libc/src/stdio.cpp index 7e83748..23931e8 100644 --- a/lib/libc/src/stdio.cpp +++ b/lib/libc/src/stdio.cpp @@ -111,6 +111,7 @@ int vsprintf(char *str, const char *format, va_list arg) { *(str++) = *(instr++); width++; } + format++; break; } default: