From eb610f14903159e290572361742a3debc8336c3c Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Thu, 21 Sep 2023 20:45:57 -0400 Subject: [PATCH] testlib/showerror.c fix SIGSEGV due to improper use of tinyprint --- libc/testlib/showerror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/testlib/showerror.c b/libc/testlib/showerror.c index b4ef59160..737a94661 100644 --- a/libc/testlib/showerror.c +++ b/libc/testlib/showerror.c @@ -98,9 +98,9 @@ static void testlib_showerror_(int line, // } if (!isempty(fmt)) { if (_weaken(kvprintf)) { - tinyprint(2, "\t"); + tinyprint(2, "\t", NULL); _weaken(kvprintf)(fmt, va); - tinyprint(2, "\n"); + tinyprint(2, "\n", NULL); } else { tinyprint(2, "\t[missing kvprintf]\n"); }