From: havoc Date: Tue, 15 May 2007 10:08:23 +0000 (+0000) Subject: fix a bug that caused the DP server to only report the first two X-Git-Tag: xonotic-v0.1.0preview~3169 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a289c5ce6871667bf9df6782c89b6c54cfed3dea;p=xonotic%2Fdarkplaces.git fix a bug that caused the DP server to only report the first two protocols it supports rather than all git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7284 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/protocol.c b/protocol.c index 848ad7c7..95be891c 100644 --- a/protocol.c +++ b/protocol.c @@ -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); } }