shithub: scc

Download patch

ref: 2465e0031192cdadbeda5af55c62d4ee921988a7
parent: 2a61dfcd596b6da4d31379663a20e4fe0566cc17
author: Michael Forney <mforney@mforney.org>
date: Sat Oct 2 23:12:11 EDT 2021

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.

--- a/src/libc/stdio/vfprintf.c
+++ b/src/libc/stdio/vfprintf.c
@@ -341,6 +341,7 @@
 		case 'g':
 		case 'G':
 			/* TODO */
+			break;
 		case 's':
 			if (flags & LONG) {
 				ws = va_arg(va2, wchar_t *);