commit 2465e0031192cdadbeda5af55c62d4ee921988a7
parent 2a61dfcd596b6da4d31379663a20e4fe0566cc17
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 3 Oct 2021 03:12:11 -0700
libc: Add break in floating-point printf TODO case
This way, nothing is printed instead of falling through to the 's'
case and trying to print the argument as a string.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/libc/stdio/vfprintf.c b/src/libc/stdio/vfprintf.c
@@ -341,6 +341,7 @@ flags:
case 'g':
case 'G':
/* TODO */
+ break;
case 's':
if (flags & LONG) {
ws = va_arg(va2, wchar_t *);