mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Fix an issue with Guild messages sent via gmsay that are too long
This commit is contained in:
parent
ea18238a12
commit
895f27a6c1
@ -1907,10 +1907,10 @@ bool WorldServer::SendEmoteMessage(const char* to, uint32 to_guilddbid, uint32 t
|
|||||||
|
|
||||||
bool WorldServer::SendEmoteMessage(const char* to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char* message, ...) {
|
bool WorldServer::SendEmoteMessage(const char* to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char* message, ...) {
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char buffer[256];
|
char buffer[256] = { 0 };
|
||||||
|
|
||||||
va_start(argptr, message);
|
va_start(argptr, message);
|
||||||
vsnprintf(buffer, 256, message, argptr);
|
vsnprintf(buffer, sizeof(buffer) - 1, message, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
|
||||||
if (!Connected() && to == 0) {
|
if (!Connected() && to == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user