summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-07 20:42:58 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-03-07 20:42:58 +0000
commit60ab71f75f359cd1c8682cc4598f0ac14111e84f (patch)
tree54038d889dc04bf1f5c7485dcdc7ae91acc18db5
parent601abce3388552c8f96486e078ee7962ed7e9ddb (diff)
fix the game module smashing userinfo strings
-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;
}