diff --git a/cl_dll/hud_spectator.cpp b/cl_dll/hud_spectator.cpp index 33a95d35..54d723c5 100644 --- a/cl_dll/hud_spectator.cpp +++ b/cl_dll/hud_spectator.cpp @@ -867,16 +867,13 @@ bool CHudSpectator::IsActivePlayer(cl_entity_t * ent) bool CHudSpectator::ParseOverviewFile( ) { - char filename[255]; - char levelname[255]; - char token[1024]; + char filename[255] = { 0 }; + char levelname[255] = { 0 }; + char token[1024] = { 0 }; float height; char *pfile = NULL; - memset( filename, 0, 255 ); - memset( levelname, 0, 255 ); - memset( token, 0, 1024 ); memset( &m_OverviewData, 0, sizeof(m_OverviewData)); // fill in standrd values