libluna: Handle * characters correctly in cstyle_format

This commit is contained in:
apio 2023-04-19 19:05:09 +02:00
parent d56e8baca5
commit 0058df9f01
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -117,6 +117,7 @@ static usize parse_width(const char** format, flags_t& flags, va_list ap)
flags |= FLAG_LEFT_ALIGN; flags |= FLAG_LEFT_ALIGN;
result = (usize)-width; result = (usize)-width;
} }
(*format)++;
} }
return result; return result;
@ -139,6 +140,7 @@ static usize parse_precision(const char** format, flags_t& flags, va_list ap)
if (precision >= 0) result = (usize)precision; if (precision >= 0) result = (usize)precision;
else else
result = 0; result = 0;
(*format)++;
} }
} }