diff --git a/NQ/net_dgrm.c b/NQ/net_dgrm.c index d4c4f50..4f9d790 100644 --- a/NQ/net_dgrm.c +++ b/NQ/net_dgrm.c @@ -368,7 +368,7 @@ Datagram_GetMessage(qsocket_t *sock) } sock->sendMessageLength -= MAX_DATAGRAM; if (sock->sendMessageLength > 0) { - memcpy(sock->sendMessage, sock->sendMessage + MAX_DATAGRAM, + memmove(sock->sendMessage, sock->sendMessage + MAX_DATAGRAM, sock->sendMessageLength); sock->sendNext = true; } else { diff --git a/NQ/net_loop.c b/NQ/net_loop.c index a2e3313..82acf85 100644 --- a/NQ/net_loop.c +++ b/NQ/net_loop.c @@ -150,7 +150,7 @@ Loop_GetMessage(qsocket_t *sock) sock->receiveMessageLength -= length; if (sock->receiveMessageLength) - memcpy(sock->receiveMessage, &sock->receiveMessage[length], + memmove(sock->receiveMessage, &sock->receiveMessage[length], sock->receiveMessageLength); if (sock->driverdata && ret == 1) diff --git a/common/cmd.c b/common/cmd.c index fda3b08..7cd3d3e 100644 --- a/common/cmd.c +++ b/common/cmd.c @@ -196,7 +196,7 @@ Cbuf_Execute(void) else { i++; cmd_text.cursize -= i; - memcpy(text, text + i, cmd_text.cursize); + memmove(text, text + i, cmd_text.cursize); } /* execute the command line */