]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
changed two memcpy calls to memmove after testing in valgrind (no other
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index e9e3a971ae6c42129c0c652b9596d0544d2c5e89..e8a275f545ee301d03aed0b7980a40b0c39d9a95 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -181,7 +181,7 @@ void Cbuf_Execute (void)
                {
                        i++;
                        cmd_text.cursize -= i;
-                       memcpy (cmd_text.data, text+i, cmd_text.cursize);
+                       memmove (cmd_text.data, text+i, cmd_text.cursize);
                }
 
 // execute the command line