Commit d8fe8443 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input/meta.c: ArtCacheCreateDir fix, second try.

parent a44ab654
...@@ -232,14 +232,13 @@ static void ArtCacheCreateDir( const char *psz_dir ) ...@@ -232,14 +232,13 @@ static void ArtCacheCreateDir( const char *psz_dir )
char * psz_newdir = newdir; char * psz_newdir = newdir;
char * psz = psz_newdir; char * psz = psz_newdir;
while( *psz_newdir ) while( *psz )
{ {
while( *psz && *psz != '/') psz++; while( *psz && *psz != '/') psz++;
if( !*psz ) break; if( !*psz ) break;
*psz = 0; *psz = 0;
if( !EMPTY_STR( psz_newdir ) ) utf8_mkdir( psz_newdir ); if( !EMPTY_STR( psz_newdir ) ) utf8_mkdir( psz_newdir );
*psz = '/'; *psz = DIR_SEP;
psz_newdir = psz+1;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment