mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-25 23:23:35 +03:00
fix(net): use correct size for account name length
This commit is contained in:
1 file changed
+1
-1
@@ -115,7 +115,7 @@ void Grunt::ClientLink::PackLogon(CDataStore& msg, const Logon& logon) {
|
|||||||
|
|
||||||
msg.Put(this->m_clientIP);
|
msg.Put(this->m_clientIP);
|
||||||
|
|
||||||
uint32_t accountNameLen = SStrLen(this->m_accountName);
|
auto accountNameLen = static_cast<uint8_t>(SStrLen(this->m_accountName));
|
||||||
msg.Put(accountNameLen);
|
msg.Put(accountNameLen);
|
||||||
msg.PutData(this->m_accountName, accountNameLen);
|
msg.PutData(this->m_accountName, accountNameLen);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user