summaryrefslogtreecommitdiffstats
path: root/cxxformat.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cxxformat.hpp')
-rw-r--r--cxxformat.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cxxformat.hpp b/cxxformat.hpp
index 79f16e5..064efbe 100644
--- a/cxxformat.hpp
+++ b/cxxformat.hpp
@@ -638,7 +638,7 @@ namespace detail
else if constexpr (conversion == 's')
{
const auto& string = convert<string_or_string_view<remove_cvref_t<Arg>>, false>(std::forward<Arg>(arg), "string", argumentIndex);
- return substr<0, i>(fmt).s + strprintf((str{"%."}.s + std::to_string(determineStringPrecision<havePrecision, fmt, iAfterFieldWidth, iAfterPrecision>(string)) + 's').c_str(), string.data()) + format_s<substr<iAfterPrecision + 1>(fmt), 0, argumentIndex + 1>(std::forward<Args>(args)...);
+ return substr<0, i>(fmt).s + strprintf("%.*s", determineStringPrecision<havePrecision, fmt, iAfterFieldWidth, iAfterPrecision>(string), string.data()) + format_s<substr<iAfterPrecision + 1>(fmt), 0, argumentIndex + 1>(std::forward<Args>(args)...);
}
else
{