From 758c6cd063cd59eddbf52ef5de480f1917acbd81 Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 21 Feb 2020 18:09:46 +0000 Subject: fix the game module smashing userinfo strings --- src/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit