diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 318e1d06c1..0af3faf2f0 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -452,7 +452,13 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm } } if (*p == '*') { - state.field_width = NextArgument()(ap); + if (state.dot) { + state.has_fraction_length = true; + state.fraction_length = NextArgument()(ap); + } else { + state.field_width = NextArgument()(ap); + } + if (*(p + 1)) goto one_more; }