diff --git a/include/spdlog/details/pattern_formatter.h b/include/spdlog/details/pattern_formatter.h index a35564be..ad6ef9a4 100644 --- a/include/spdlog/details/pattern_formatter.h +++ b/include/spdlog/details/pattern_formatter.h @@ -571,7 +571,7 @@ public: f->format(msg, cached_tm_, dest); } // write eol - details::fmt_helper::append_str(eol_, dest); + details::fmt_helper::append_c_str(eol_.c_str(), dest); } private: