]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
fix memory corruption when using trailparticles with an effect that has a dlight
[xonotic/darkplaces.git] / netconn.c
index f04fe2e9e52e4f69f9d301ab0f8a6cb9d522d1f5..369014891d05fd49fa3b6428373d0ca58973048d 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2034,6 +2034,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg
                                                        break;
                                        }
                                } while (curchar != '\0');
+                               cleanname[cleanind] = 0; // cleanind is always a valid index even at this point
 
                                pingvalue = (int)(cl->ping * 1000.0f);
                                if(cl->netconnection)