]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug that caused the DP server to only report the first two
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 May 2007 10:08:23 +0000 (10:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 May 2007 10:08:23 +0000 (10:08 +0000)
protocols it supports rather than all

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7284 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index 848ad7c7f2357bdab1682b6e501e413c6fdef396..95be891c31727156d9e9e3af724ad2cd3c25b727 100644 (file)
@@ -93,8 +93,8 @@ void Protocol_Names(char *buffer, size_t buffersize)
        for (i = 1;protocolversioninfo[i].name;i++)
        {
                if (i > 1)
-                       strlcat(buffer, " ", sizeof(buffer));
-               strlcat(buffer, protocolversioninfo[i].name, sizeof(buffer));
+                       strlcat(buffer, " ", buffersize);
+               strlcat(buffer, protocolversioninfo[i].name, buffersize);
        }
 }