From a289c5ce6871667bf9df6782c89b6c54cfed3dea Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 15 May 2007 10:08:23 +0000 Subject: [PATCH] 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 --- protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.39.2