summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:16 +0200
commitfe397ee4be366dc911a31ab92eb4bc2ff7031570 (patch)
tree5f7767a4074f3da06a7e1442eb8fdfd86be5ce6d /src/qcommon
parent787ae313812f0a385f3cec9216fa0e67df148ca7 (diff)
fix the game module smashing userinfo strings
strcpy() was WRONGly used btw, this has LONG(TM) ago been fixed in modern code bases
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;
}