X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=com_game.c;h=e2add7e2ef7b0376f92a1b765935a89cb0ff941a;hp=1406989ba6e4a9c6fccc840a6f650bbf15cb77c5;hb=906474fc025ff5b0b8799d9045a581bceafd2e7d;hpb=21fa9010ae6de8792f36cca08cb77aaa95d4b928 diff --git a/com_game.c b/com_game.c index 1406989b..e2add7e2 100644 --- a/com_game.c +++ b/com_game.c @@ -195,7 +195,7 @@ static void COM_SetGameType(int index) // if there are spaces in the game's network filter name it would // cause parse errors in getservers in dpmaster, so we need to replace // them with _ characters - strlcpy(gamenetworkfilternamebuffer, gamenetworkfiltername, sizeof(gamenetworkfilternamebuffer)); + dp_strlcpy(gamenetworkfilternamebuffer, gamenetworkfiltername, sizeof(gamenetworkfilternamebuffer)); while ((s = strchr(gamenetworkfilternamebuffer, ' ')) != NULL) *s = '_'; gamenetworkfiltername = gamenetworkfilternamebuffer;