From 4410d219f72534a811b16d4995e6959a30b0d473 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Thu, 17 Oct 2019 15:42:46 +0200 Subject: [PATCH] Send pre-formatted string in SayText and TextMSg as a parameter instead of as the format string (#763) --- amxmodx/util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amxmodx/util.cpp b/amxmodx/util.cpp index 8b3713dc..f9060eff 100755 --- a/amxmodx/util.cpp +++ b/amxmodx/util.cpp @@ -276,6 +276,7 @@ void UTIL_ClientPrint(edict_t *pEntity, int msg_dest, char *msg) MESSAGE_BEGIN(MSG_BROADCAST, gmsgTextMsg); WRITE_BYTE(msg_dest); + WRITE_STRING("%s"); WRITE_STRING(msg); MESSAGE_END(); msg[190] = c; @@ -291,6 +292,7 @@ void UTIL_ClientSayText(edict_t *pEntity, int sender, char *msg) MESSAGE_BEGIN(MSG_ONE, gmsgSayText, NULL, pEntity); WRITE_BYTE(sender); + WRITE_STRING("%s"); WRITE_STRING(msg); MESSAGE_END(); msg[190] = c;