From 2fc2515e0f168ee0c3f512c9c9658425255bf26c Mon Sep 17 00:00:00 2001 From: def Date: Tue, 10 May 2016 12:40:33 +0200 Subject: [PATCH] Fix DDNet server browser to refresh only once on start, not twice --- src/engine/client/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 0f670bf65..4efe7ce33 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1233,6 +1233,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket) // do decompression of serverlist if (uncompress((Bytef*)aBuf, &DstLen, (Bytef*)pComp, CompLength) == Z_OK && (int)DstLen == PlainLength) { + aBuf[DstLen] = '\0'; bool ListChanged = true; IOHANDLE File = m_pStorage->OpenFile("ddnet-servers.json", IOFLAG_READ, IStorage::TYPE_SAVE);