Server browser crash fix.

This commit is contained in:
Marco Cawthorne 2023-06-23 21:14:51 -07:00
parent f4044af503
commit d57dd2fb3a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 1 additions and 1 deletions

View File

@ -2767,7 +2767,7 @@ static void MasterInfo_ProcessHTTP(struct dl_download *dl)
info = Z_Malloc(sizeof(serverinfo_t));
info->adr = adr;
info->sends = 1;
Q_strncpyz(info->brokerid, brokerid, sizeof(info->brokerid));
Q_strncpyz(info->brokerid, brokerid?brokerid:"", sizeof(info->brokerid));
info->special = 0;
if (protocoltype == MP_QUAKEWORLD)