From 1568eee0de940ced77e8a782e966def85268d0ed Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:16:09 +0200 Subject: [PATCH] Fix memset size in IMEManager::Update_Candidate_List --- src/game/client/gui/imemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/gui/imemanager.cpp b/src/game/client/gui/imemanager.cpp index 946f71103..a2a00c394 100644 --- a/src/game/client/gui/imemanager.cpp +++ b/src/game/client/gui/imemanager.cpp @@ -566,7 +566,7 @@ void IMEManager::Update_Candidate_List(int candidate_flags) CANDIDATELIST *list = new CANDIDATELIST[size]; if (list != nullptr) { - memset(list, 0, size); + memset(list, 0, sizeof(CANDIDATELIST) * size); bool b2 = true; DWORD size2;