summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/files.c b/source/files.c
index 039e5c1..1d5a96c 100644
--- a/source/files.c
+++ b/source/files.c
@@ -1613,7 +1613,7 @@ static void q_printf( 1, 2 ) FS_AddGameDirectory( const char *fmt, ... ) {
if( !( fs_restrict_mask->integer & 1 ) ) {
search = FS_Malloc( sizeof( searchpath_t ) + length );
search->pack = NULL;
- strcpy( search->filename, fs_gamedir );
+ memcpy( search->filename, fs_gamedir, length + 1 );
search->next = fs_searchpaths;
fs_searchpaths = search;
}