From: havoc Date: Thu, 26 Sep 2013 20:54:23 +0000 (+0000) Subject: fix a typo X-Git-Tag: xonotic-v0.8.0~123 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9b9f3290ffc60b15ce243288ecb4a671bb05afd;p=xonotic%2Fdarkplaces.git fix a typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12014 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=bd6ea691f42e1788efd6bb38447f889d03b9f089 --- diff --git a/common.c b/common.c index f75d24ea..47edc4c9 100644 --- a/common.c +++ b/common.c @@ -1588,7 +1588,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(gamenetworkfiltername)); + strlcpy(gamenetworkfilternamebuffer, gamenetworkfiltername, sizeof(gamenetworkfilternamebuffer)); while ((s = strchr(gamenetworkfilternamebuffer, ' ')) != NULL) *s = '_'; gamenetworkfiltername = gamenetworkfilternamebuffer;