From 2968a5e514c62e9df4528b43a3d089c965536b43 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 18 Jun 2015 17:22:34 -0500 Subject: fix a stupid use of strcpy() strcpy() arguments may not overlap ! --- src/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcommon/q_shared.c') diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index f226603d..f5888633 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -1276,7 +1276,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; } -- cgit