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.8.0~96^2~244 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a21a71154324bd358045e523e67a45bb5a32eb0;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 --- 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) {