libluna: Handle * characters correctly in cstyle_format
This commit is contained in:
parent
d56e8baca5
commit
0058df9f01
@ -117,6 +117,7 @@ static usize parse_width(const char** format, flags_t& flags, va_list ap)
|
||||
flags |= FLAG_LEFT_ALIGN;
|
||||
result = (usize)-width;
|
||||
}
|
||||
(*format)++;
|
||||
}
|
||||
|
||||
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;
|
||||
else
|
||||
result = 0;
|
||||
(*format)++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user