From f0cea26ac55e6ad0560864d2c3ff29e4a2560422 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Mon, 11 Sep 2023 23:53:57 -0400 Subject: [PATCH] fix the implements of client enhanced information * miscmatch of a variable pos --- src/clientiface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientiface.h b/src/clientiface.h index 2ae8fd6f6..f659300fb 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -336,7 +336,7 @@ public: const size_t pos1 = full.find('\x00'); if (pos1 != std::string::npos) m_platform = full.substr(pos1 + 1).c_str(); - const size_t pos2 = full.find('\x00', pos + 1); + const size_t pos2 = full.find('\x00', pos1 + 1); if (pos2 != std::string::npos) m_sysinfo = full.substr(pos2 + 1); }