Fix warning on gcc11

pull/581/head
Nicolas Werner 4 years ago
parent d52c2515bc
commit 44c5236808
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      third_party/cpp-httplib-0.5.12/httplib.h

@ -2906,7 +2906,7 @@ inline ssize_t Stream::write(const std::string &s) {
template <typename... Args>
inline ssize_t Stream::write_format(const char *fmt, const Args &... args) {
std::array<char, 2048> buf;
std::array<char, 2048> buf{};
#if defined(_MSC_VER) && _MSC_VER < 1900
auto sn = _snprintf_s(buf, bufsiz, buf.size() - 1, fmt, args...);

Loading…
Cancel
Save