From 711e2b2651505da91cef983df130118bc6b709d8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 27 Feb 2019 08:38:17 +0100 Subject: [PATCH] AK: Accept any number of l's as printf format qualifiers. This isn't entirely correct and will catch a bunch of things it's not supposed to, but it works for now. --- AK/printf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/printf.cpp b/AK/printf.cpp index ee0a6de37c..cd5fe310e2 100644 --- a/AK/printf.cpp +++ b/AK/printf.cpp @@ -150,6 +150,7 @@ template bool leftPad = false; bool zeroPad = false; unsigned fieldWidth = 0; + unsigned long_qualifiers = 0; if (*p == '%' && *(p + 1)) { one_more: ++p; @@ -169,6 +170,10 @@ one_more: if (*(p + 1)) goto one_more; } + if (*p == 'l') { + ++long_qualifiers; + goto one_more; + } switch( *p ) { case 's':