From 1945caa547ede25860973f8f086dfc4ae0e9efb4 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 16 Nov 2022 09:48:43 +0500 Subject: [PATCH] Set string without copying. --- cl_dll/hs/halloween.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cl_dll/hs/halloween.cpp b/cl_dll/hs/halloween.cpp index d905207f..3a418ada 100644 --- a/cl_dll/hs/halloween.cpp +++ b/cl_dll/hs/halloween.cpp @@ -232,9 +232,8 @@ void CHudHalloween::MessageAdd( int type, float time, char *text ) break; case MSG_HALLOWEEN: int youbet = atoi(text); - sprintf(tempBuffer, "%s", billymc[youbet]); m_pCustomMsgs[type] = new CCustomMessage(200, 200, 200, ScreenHeight / 2 - + (ScreenHeight / 4.5), 1.5, 5, time, tempBuffer); + + (ScreenHeight / 4.5), 1.5, 5, time, billymc[youbet]); break; } -} \ No newline at end of file +}