From 2facf77f01414a5e93e99ac0e974c538df8923e7 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Mon, 13 Jun 2016 18:50:38 +0500 Subject: [PATCH] Fix buffer limit. --- cl_dll/death.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cl_dll/death.cpp b/cl_dll/death.cpp index 97d4900e..095d48bd 100644 --- a/cl_dll/death.cpp +++ b/cl_dll/death.cpp @@ -167,8 +167,7 @@ int CHudDeathNotice :: MsgFunc_DeathMsg( const char *pszName, int iSize, void *p char killedwith[32]; strcpy( killedwith, "d_" ); - strncat( killedwith, READ_STRING(), 32 ); - + strncat( killedwith, READ_STRING(), sizeof(killedwith) - strlen(killedwith) - 1 ); gHUD.m_Spectator.DeathMessage(victim);