From f267bbb3701c86ba099a04bfded08491a81af25b Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 12 Apr 2012 07:08:45 +0000 Subject: [PATCH] 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 --- cl_particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2