Browse Source

Fix buffer limit.

wantedhl
Night Owl 9 years ago
parent
commit
2facf77f01
  1. 3
      cl_dll/death.cpp

3
cl_dll/death.cpp

@ -167,8 +167,7 @@ int CHudDeathNotice :: MsgFunc_DeathMsg( const char *pszName, int iSize, void *p @@ -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);

Loading…
Cancel
Save