summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-06-18 17:22:34 -0500
committerTim Angus <tim@ngus.net>2016-04-07 11:02:28 +0100
commit2968a5e514c62e9df4528b43a3d089c965536b43 (patch)
treefe960da425e08bd1ac82eae234151accfa353a41 /src/qcommon
parente656dd81c4d86fc997986894316f13bc5c597e37 (diff)
fix a stupid use of strcpy()
strcpy() arguments may not overlap !
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/q_shared.c2
1 files changed, 1 insertions, 1 deletions
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;
}