From bc810377fd9dd95bd8071ae5bf0457c40cca6089 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 17 Sep 2005 17:09:22 +0000 Subject: [PATCH] A small security fix, well, it might be needed later. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1343 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 14629bdca..652faa8b0 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -1344,6 +1344,13 @@ void P_NewServer(void) f_modified_particles = false; + { + char *semi; + semi = strchr(r_particlesdesc.string, ';'); + if (semi) //make sure nothing uses this for other means. + *semi = '\0'; + } + //particle descriptions submitted by the server are deemed to not be cheats but game configs. if (!stricmp(r_particlesdesc.string, "none")) return;