Fix buffer limit.

This commit is contained in:
Night Owl 2016-06-13 18:50:38 +05:00
parent a9796904ec
commit 2facf77f01
1 changed files with 1 additions and 2 deletions

View File

@ -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);