From 8bbbfbd93eee3aaa0532de92be084d9fcb831d4e Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Mon, 4 Oct 2021 08:25:25 -0400 Subject: [PATCH] protocol: Fix off-by-one when appending space in Protocol_Names --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2