Commit d70106fd authored by Rafaël Carré's avatar Rafaël Carré

fix #1362 (replace ':' with '_' in filenames on macosx)

parent 9e5ebb07
...@@ -996,7 +996,9 @@ void filename_sanitize( char *str ) ...@@ -996,7 +996,9 @@ void filename_sanitize( char *str )
switch( *str ) switch( *str )
{ {
case '/': case '/':
#ifdef WIN32 #if defined( __APPLE__ )
case ':':
#elif defined( WIN32 )
case '\\': case '\\':
case '*': case '*':
case '"': case '"':
...@@ -1031,7 +1033,10 @@ void path_sanitize( char *str ) ...@@ -1031,7 +1033,10 @@ void path_sanitize( char *str )
#endif #endif
while( *str ) while( *str )
{ {
#ifdef WIN32 #if defined( __APPLE__ )
if( *str == ':' )
*str = '_';
#elif defined( WIN32 )
switch( *str ) switch( *str )
{ {
case '*': case '*':
......
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