diff --git a/include/fmt/format.h b/include/fmt/format.h index d9dd7ea2..fa8246f6 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1063,7 +1063,7 @@ namespace detail_exported { #if FMT_USE_NONTYPE_TEMPLATE_ARGS template struct fixed_string { constexpr fixed_string(const Char (&str)[N]) { - detail::copy_str(static_cast(str), + detail::copy_str(static_cast(str), str + N, data); } Char data[N] = {};