]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpvsimpledecode.c
physics: fix and refactor unsticking
[xonotic/darkplaces.git] / dpvsimpledecode.c
index ed89260a9f97a857617d01c55a4f8fb8c445ade1..244387ab6dc55f5edebc912d82dc782ae8e91413 100644 (file)
@@ -1,3 +1,23 @@
+/*
+Copyright (C) 2002-2013 DarkPlaces contributors
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+*/
+
 #include "quakedef.h"
 #include "dpvsimpledecode.h"
 
@@ -377,7 +397,7 @@ void *dpvsimpledecode_open(clvideo_t *video, char *filename, const char **errors
                                                                        sfx_t* sfx;
 
                                                                        FS_StripExtension(filename, wavename, namelen);
-                                                                       strlcat(wavename, ".wav", namelen);
+                                                                       dp_strlcat(wavename, ".wav", namelen);
                                                                        sfx = S_PrecacheSound (wavename, false, false);
                                                                        if (sfx != NULL)
                                                                                s->sndchan = S_StartSound (-1, 0, sfx, vec3_origin, 1.0f, 0);