From c52e35bcd88b8cff5d692f5e5c5f06982e056dbc Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 18 Jun 2015 17:22:34 -0500 Subject: [PATCH] fix a stupid use of strcpy() strcpy() arguments may not overlap ! --- code/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c index a771c829bb..820c862c76 100644 --- a/code/qcommon/q_shared.c +++ b/code/qcommon/q_shared.c @@ -1256,7 +1256,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) { if (!strcmp (key, pkey) ) { - strcpy (start, s); // remove this part + memmove(start, s, strlen(s) + 1); // remove this part return; }