From fe397ee4be366dc911a31ab92eb4bc2ff7031570 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 13 Apr 2017 11:30:00 +0000 Subject: fix the game module smashing userinfo strings strcpy() was WRONGly used btw, this has LONG(TM) ago been fixed in modern code bases --- src/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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