]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/vfs.c
q3map2: better use strncpy instead of strcpy
[xonotic/netradiant.git] / tools / quake3 / common / vfs.c
index 62881b5e22e167be40135b7c48113c3073d521a6..8f5e57bfb9a1bb0dcfbe4068478eda2520fa6ea9 100644 (file)
@@ -344,7 +344,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
        }
 
        *bufferptr = NULL;
-       strcpy( fixed, filename );
+       strncpy( fixed, filename, sizeof( fixed ) );
        vfsFixDOSName( fixed );
        lower = g_ascii_strdown( fixed, -1 );