You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
392 B

  1. --- a/include/spdlog/common-inl.h
  2. +++ b/include/spdlog/common-inl.h
  3. @@ -60,7 +60,7 @@ SPDLOG_INLINE spdlog_ex::spdlog_ex(std::
  4. SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string &msg, int last_errno)
  5. {
  6. memory_buf_t outbuf;
  7. - fmt::format_system_error(outbuf, last_errno, msg);
  8. + fmt::format_system_error(outbuf, last_errno, msg.data());
  9. msg_ = fmt::to_string(outbuf);
  10. }