mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Need to account for null byte
This commit is contained in:
parent
c159b89e79
commit
de48d79b27
@ -859,7 +859,7 @@ bool Client::HandleEnterWorldPacket(const EQApplicationPacket *app) {
|
||||
outapp = new EQApplicationPacket(OP_MOTD);
|
||||
std::string tmp;
|
||||
if (database.GetVariable("MOTD", tmp)) {
|
||||
outapp->size = tmp.length();
|
||||
outapp->size = tmp.length() + 1;
|
||||
outapp->pBuffer = new uchar[outapp->size];
|
||||
memset(outapp->pBuffer,0,outapp->size);
|
||||
strcpy((char*)outapp->pBuffer, tmp.c_str());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user