projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc387a
)
fix a use of Cmd_Argv(1) as a dpsnprintf format string
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2012 07:08:45 +0000
(07:08 +0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2012 07:08:45 +0000
(07:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11794
d7cf8633
-e32d-0410-b094-
e92efae38249
cl_particles.c
patch
|
blob
|
history
diff --git
a/cl_particles.c
b/cl_particles.c
index 6222200f72908cd9dc03c23c1c930f047f7a0913..14b0cb43580fccc973209ce244632c4b0ef3fd79 100644
(file)
--- 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)
{