protocol: Fix off-by-one when appending space in Protocol_Names master
authorCloudwalk <cloudwalk@icculus.org>
Mon, 4 Oct 2021 12:25:25 +0000 (08:25 -0400)
committerCloudwalk <cloudwalk@icculus.org>
Mon, 4 Oct 2021 12:25:25 +0000 (08:25 -0400)
protocol.c

index 5685675562e0e51096425f306fcbf741129f09f2..837ad97bed27445f804927f334b6b94440882747 100644 (file)
@@ -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);
        }