diff --git a/libluna/src/Format.cpp b/libluna/src/Format.cpp index c2aafc46..70ecc794 100644 --- a/libluna/src/Format.cpp +++ b/libluna/src/Format.cpp @@ -139,7 +139,10 @@ static usize parse_precision(const char** format, flags_t& flags, va_list ap) const int precision = va_arg(ap, int); if (precision >= 0) result = (usize)precision; else + { result = 0; + flags &= ~FLAG_USE_PRECISION; + } (*format)++; } }