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.
This commit is contained in:
parent
e421c10735
commit
711e2b2651
Notes:
sideshowbarker
2024-07-19 15:37:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/711e2b26515
1 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,7 @@ template<typename PutChFunc>
|
|||
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':
|
||||
|
|
Loading…
Add table
Reference in a new issue