From: Cloudwalk Date: Mon, 4 Oct 2021 12:25:25 +0000 (-0400) Subject: protocol: Fix off-by-one when appending space in Protocol_Names X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8bbbfbd93eee3aaa0532de92be084d9fcb831d4e;p=xonotic%2Fdarkplaces.git protocol: Fix off-by-one when appending space in Protocol_Names --- diff --git a/protocol.c b/protocol.c index 56856755..837ad97b 100644 --- a/protocol.c +++ b/protocol.c @@ -109,7 +109,7 @@ void Protocol_Names(char *buffer, size_t buffersize) buffer[0] = 0; for (i = 0;protocolversioninfo[i].name;i++) { - if (i > 1) + if (i > 0) strlcat(buffer, " ", buffersize); strlcat(buffer, protocolversioninfo[i].name, buffersize); }