summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-01-16 14:46:10 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-01-16 14:46:10 +0000
commit402aa3569a98a81f7f861bd13bb34038215c989c (patch)
treeef093808b6c915c2971c3e97df76befc915ca8a9 /source/files.c
parent6a9dd9138cd232eda47536599d79fa67b14f02e9 (diff)
Handle WM_CHAR/WM_SYSCHAR messages on Windows.
Repaint window when resizing, etc.
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;
}