]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix overrun in netconn.c when creating status replies (player names with 63 character...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:38:06 +0000 (08:38 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Jan 2009 08:38:06 +0000 (08:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8630 d7cf8633-e32d-0410-b094-e92efae38249

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)