From 9e294ff8c370c3bc9bb98db5e68862a3765f432c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Thu, 12 Oct 2023 01:24:18 +0300 Subject: [PATCH] Pass buff size correctly inside the tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves #41. Fixes: 51a5ba57cc767d61e69fab87234f29d3c1e27008 #41 Signed-off-by: Björn Bidar --- test/test_ipc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_ipc.hpp b/test/test_ipc.hpp index 1aba72c..8190c9d 100644 --- a/test/test_ipc.hpp +++ b/test/test_ipc.hpp @@ -14,7 +14,7 @@ public: auto buff = i3_pack(ClientMessageType::COMMAND, "exit"); auss_t auss; auss << std::hex; - for (uint32_t i = 0; i < buff->size; i++) { + for (uint32_t i = 0; i < buff->data.size(); i++) { if (buff->data[i] < 0x10) { auss << '0'; }