]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a typo
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2013 20:54:23 +0000 (20:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Sep 2013 20:54:23 +0000 (20:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12014 d7cf8633-e32d-0410-b094-e92efae38249

common.c

index f75d24eafa5d952589000cef62fb945c44a28e36..47edc4c9c06211253896925212c7358a01772670 100644 (file)
--- 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;