From 402aa3569a98a81f7f861bd13bb34038215c989c Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 16 Jan 2008 14:46:10 +0000 Subject: Handle WM_CHAR/WM_SYSCHAR messages on Windows. Repaint window when resizing, etc. --- source/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/files.c') 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; } -- cgit v1.2.3