testlib/showerror.c fix SIGSEGV due to improper use of tinyprint

This commit is contained in:
Gavin Hayes 2023-09-21 20:45:57 -04:00
parent ed316491ca
commit eb610f1490

View file

@ -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");
}