]> git.sesse.net Git - vlc/commitdiff
input/meta.c: Fix ArtCacheCreateDir Attempt #4. (thanks to ILEoo).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 16:05:39 +0000 (16:05 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 16:05:39 +0000 (16:05 +0000)
src/input/meta.c

index 4bab8830e9b30e3dde8b46f0e9b4d9765eff2167..017a517693f311791c8eab49a9d5ec815b2a0e8a 100644 (file)
@@ -234,11 +234,11 @@ static void ArtCacheCreateDir( const char *psz_dir )
 
     while( *psz )
     {
-        while( *psz && *psz != '/') psz++;
+        while( *psz && *psz != DIR_SEP_CHAR) psz++;
         if( !*psz ) break;
         *psz = 0;        
         if( !EMPTY_STR( psz_newdir ) ) utf8_mkdir( psz_newdir );
-        *psz = DIR_SEP;
+        *psz = DIR_SEP_CHAR;
         psz++;   
     }
 }