diff options
-rw-r--r-- | AK/CheckedFormatString.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h index d0dc4e81e8..1adb3eda7c 100644 --- a/AK/CheckedFormatString.h +++ b/AK/CheckedFormatString.h @@ -147,7 +147,7 @@ template<typename... Args> struct CheckedFormatString { template<size_t N> consteval CheckedFormatString(char const (&fmt)[N]) - : m_string { fmt } + : m_string { fmt, N - 1 } { #ifdef ENABLE_COMPILETIME_FORMAT_CHECK check_format_parameter_consistency<N, sizeof...(Args)>(fmt); |