]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
changed two memcpy calls to memmove after testing in valgrind (no other
[xonotic/darkplaces.git] / netconn.c
index ca412f538ac0f481a3b61736962f0a66426176fd..9ef5455065994d6af59dbccaa307afa8347e1a84 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1091,7 +1091,7 @@ static int NetConn_ReceivedMessage(netconn_t *conn, unsigned char *data, int len
                                                        unsigned int *header;
 
                                                        conn->sendMessageLength -= MAX_PACKETFRAGMENT;
-                                                       memcpy(conn->sendMessage, conn->sendMessage+MAX_PACKETFRAGMENT, conn->sendMessageLength);
+                                                       memmove(conn->sendMessage, conn->sendMessage+MAX_PACKETFRAGMENT, conn->sendMessageLength);
 
                                                        if (conn->sendMessageLength <= MAX_PACKETFRAGMENT)
                                                        {