From 11551750577c86d579b799a6d75edddf5f34b57d Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 25 Dec 2020 19:38:11 +0700 Subject: [PATCH] Host_Say: Use a local buffer instead of external one --- regamedll/dlls/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regamedll/dlls/client.cpp b/regamedll/dlls/client.cpp index ba813c01..55aa32b9 100644 --- a/regamedll/dlls/client.cpp +++ b/regamedll/dlls/client.cpp @@ -772,7 +772,8 @@ void Host_Say(edict_t *pEntity, BOOL teamonly) { if (CMD_ARGC_() >= 2) { - p = (char *)CMD_ARGS(); + Q_strlcpy(szTemp, CMD_ARGS()); + p = szTemp; } else {