Commit defde1c8 authored by Antoine Cellerier's avatar Antoine Cellerier

* Fix forbiden windows characters list. (in fact it's not windows only, but...

 * Fix forbiden windows characters list. (in fact it's not windows only, but fat32/ntfs ... but noone cares)
parent 5d03d245
......@@ -804,15 +804,14 @@ void filename_sanitize( char *str )
{
case '/':
#ifdef WIN32
case '\\':
case '*':
case '"':
case '\\':
case '[':
case ']':
case "?":
case ':':
case ';':
case '|':
case '=':
case '<':
case '>'
#endif
*str = '_';
}
......@@ -825,22 +824,21 @@ void filename_sanitize( char *str )
*/
void path_sanitize( char *str )
{
#ifdef WIN32
while( *str )
{
switch( *str )
{
#ifdef WIN32
case '*':
case '"':
case '[':
case ']':
case "?":
case ':':
case ';':
case '|':
case '=':
#endif
case '<':
case '>'
*str = '_';
}
str++;
}
#endif
}
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