Decompile fn_22016 (CGameMode::ReceiveClanChat)
Batch #16050 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_22016 CGameMode::ReceiveClanChat: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b515a413b1
commit
e0757bb8fb
1 changed files with 2 additions and 1 deletions
|
|
@ -2945,11 +2945,12 @@ void CGameMode::ReceivePendingItem1718List(const unsigned char* packet) {
|
|||
void CGameMode::ReceiveClanChat(const unsigned char* packet) {
|
||||
const int messageLength = *reinterpret_cast<const std::int16_t*>(packet + 2) - 28;
|
||||
|
||||
if (messageLength < 0 || messageLength > 220) {
|
||||
if (static_cast<unsigned int>(messageLength) > 220) {
|
||||
return;
|
||||
}
|
||||
|
||||
char message[220];
|
||||
|
||||
std::memset(message, 0, sizeof(message));
|
||||
strcpy_s(message, sizeof(message), reinterpret_cast<const char*>(packet + 28));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue