From 6acfd910ae65d45947cf33a217d4bcee7b835091 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 11 Jul 2017 23:08:05 +0200 Subject: [PATCH] Fix warning g_strdown is deprecated --- tools/quake3/common/vfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/quake3/common/vfs.c b/tools/quake3/common/vfs.c index 04af830e..52595be5 100644 --- a/tools/quake3/common/vfs.c +++ b/tools/quake3/common/vfs.c @@ -145,7 +145,7 @@ static void vfsInitPakFile( const char *filename ){ g_pakFiles = g_slist_append( g_pakFiles, file ); vfsFixDOSName( filename_inzip ); - g_strdown( filename_inzip ); + g_ascii_strdown( filename_inzip, -1 );//-1 null terminated string file->name = strdup( filename_inzip ); file->size = file_info.uncompressed_size; @@ -236,7 +236,7 @@ int vfsGetFileCount( const char *filename ){ strcpy( fixed, filename ); vfsFixDOSName( fixed ); - g_strdown( fixed ); + g_ascii_strdown( fixed, -1 ); for ( lst = g_pakFiles; lst != NULL; lst = g_slist_next( lst ) ) { @@ -296,7 +296,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){ *bufferptr = NULL; strcpy( fixed, filename ); vfsFixDOSName( fixed ); - g_strdown( fixed ); + g_ascii_strdown( fixed, -1 ); for ( i = 0; i < g_numDirs; i++ ) {