mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Fix warning on gcc11
This commit is contained in:
parent
d52c2515bc
commit
44c5236808
1 changed files with 1 additions and 1 deletions
2
third_party/cpp-httplib-0.5.12/httplib.h
vendored
2
third_party/cpp-httplib-0.5.12/httplib.h
vendored
|
@ -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…
Reference in a new issue