summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-02-21 18:09:46 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-02-21 18:09:46 +0000
commit758c6cd063cd59eddbf52ef5de480f1917acbd81 (patch)
tree71513b57eddff7de24cd6f9b5ddd6239539773c4 /src/qcommon
parente322a604927c138b08a6ff20c2a91fdd8bcfa4e5 (diff)
fix the game module smashing userinfo strings
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 2ac5537..30b9d53 100644
--- a/src/qcommon/q_shared.c
+++ b/src/qcommon/q_shared.c
@@ -1100,7 +1100,7 @@ void Info_RemoveKey( 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;
}