diff --git a/fteqtv/rcon.c b/fteqtv/rcon.c index 7eb6597d4..b86e10100 100644 --- a/fteqtv/rcon.c +++ b/fteqtv/rcon.c @@ -161,7 +161,11 @@ void Info_RemoveKey (char *s, const char *key) if (!strcmp (key, pkey) ) { - strcpy (start, s); // remove this part + //strip out the value by copying the next string over the top of this one + //(we were using strcpy, but valgrind moans and glibc fucks it up. they should not overlap... so use our own crappy inefficient alternative) + while(*s) + *start++ = *s++; + *start = 0; return; }