protocol: Fix off-by-one when appending space in Protocol_Names
[xonotic/darkplaces.git] / 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);
        }