diff --git a/3rdparty/README.md b/3rdparty/README.md index ed5de2b3c572..f39c70157b62 100644 --- a/3rdparty/README.md +++ b/3rdparty/README.md @@ -248,7 +248,7 @@ ## yasio - [![Upstream](https://img.shields.io/github/v/release/yasio/yasio?label=Upstream)](https://github.com/yasio/yasio) -- Version: 4.2.2 +- Version: 4.2.3 - License: MIT WITH Anti-996 ## zlib diff --git a/3rdparty/yasio/yasio/config.hpp b/3rdparty/yasio/yasio/config.hpp index 9f65a1bcc7ef..77c35c1301bf 100644 --- a/3rdparty/yasio/yasio/config.hpp +++ b/3rdparty/yasio/yasio/config.hpp @@ -205,7 +205,7 @@ SOFTWARE. /* ** The yasio version macros */ -#define YASIO_VERSION_NUM 0x040202 +#define YASIO_VERSION_NUM 0x040203 /* ** The macros used by io_service. diff --git a/3rdparty/yasio/yasio/io_service.cpp b/3rdparty/yasio/yasio/io_service.cpp index 96a607ec556f..fa39f076c6b4 100644 --- a/3rdparty/yasio/yasio/io_service.cpp +++ b/3rdparty/yasio/yasio/io_service.cpp @@ -76,8 +76,10 @@ struct yasio_kcp_options { auto __msg = ::yasio::strfmt(127, "[yasio][%lld]" format "\n", ::yasio::clock(), ##__VA_ARGS__); \ if (__cprint) \ __cprint(level, __msg.c_str()); \ - else \ + else { \ + __msg.back() = '\0'; \ YASIO_LOG_TAG("", "%s", __msg.c_str()); \ + } \ } while (false) // clang-format on