]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a use of Cmd_Argv(1) as a dpsnprintf format string
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2012 07:08:45 +0000 (07:08 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 15 Apr 2012 13:01:35 +0000 (15:01 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11794 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6a21a71154324bd358045e523e67a45bb5a32eb0

cl_particles.c

index 6222200f72908cd9dc03c23c1c930f047f7a0913..14b0cb43580fccc973209ce244632c4b0ef3fd79 100644 (file)
@@ -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)
                {