mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(net): use correct size for account name length
This commit is contained in:
parent
52db47e403
commit
474588bbee
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue