diff --git a/include/fmt/format.h b/include/fmt/format.h index 256a99ab..fcd8b8f1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2452,8 +2452,8 @@ template OutputIt { - // Buffer is large enough to hold digits (digits10 + 1) and a decimal point. - Char buffer[digits10() + 2]; + // Buffer is large enough to hold digits (digits10 + 2) and a decimal point. + Char buffer[digits10() + 3]; auto end = write_significand(buffer, significand, significand_size, integral_size, decimal_point); return detail::copy_noinline(buffer, end, out);