From: havoc Date: Thu, 12 Apr 2012 07:08:45 +0000 (+0000) Subject: fix a use of Cmd_Argv(1) as a dpsnprintf format string X-Git-Tag: xonotic-v0.7.0~161 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f267bbb3701c86ba099a04bfded08491a81af25b;p=xonotic%2Fdarkplaces.git fix a use of Cmd_Argv(1) as a dpsnprintf format string git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11794 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6a21a71154324bd358045e523e67a45bb5a32eb0 --- diff --git a/cl_particles.c b/cl_particles.c index 6222200f..14b0cb43 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -535,9 +535,9 @@ static void CL_Particles_LoadEffectInfo(const char *customfile) if (filepass == 0) { if (customfile) - dpsnprintf(filename, sizeof(filename), customfile); + strlcpy(filename, customfile, sizeof(filename)); else - dpsnprintf(filename, sizeof(filename), "effectinfo.txt"); + strlcpy(filename, "effectinfo.txt", sizeof(filename)); } else if (filepass == 1) {