diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-03-07 20:42:58 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-03-07 20:42:58 +0000 |
commit | 60ab71f75f359cd1c8682cc4598f0ac14111e84f (patch) | |
tree | 54038d889dc04bf1f5c7485dcdc7ae91acc18db5 /src/qcommon | |
parent | 601abce3388552c8f96486e078ee7962ed7e9ddb (diff) |
fix the game module smashing userinfo strings
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/q_shared.c | 2 |
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; } |