just set first char of ddnet filter to zero

This commit is contained in:
Tim Schumacher 2016-05-19 15:54:52 +02:00
parent dae855ee9f
commit 96bcedec29

View file

@ -1066,7 +1066,7 @@ bool CServerBrowser::DDNetFiltered(char *pFilter, const char *pName)
void CServerBrowser::DDNetCountryFilterClean()
{
char aNewList[128];
mem_zero(aNewList, sizeof(aNewList));
aNewList[0] = '\0';
for(int i = 0; i < m_NumDDNetCountries; i++)
{
@ -1085,7 +1085,7 @@ void CServerBrowser::DDNetCountryFilterClean()
void CServerBrowser::DDNetTypeFilterClean()
{
char aNewList[128];
mem_zero(aNewList, sizeof(aNewList));
aNewList[0] = '\0';
for(int i = 0; i < m_NumDDNetTypes; i++)
{