git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d03d24
)
* Fix forbiden windows characters list. (in fact it's not windows only, but fat32...
author
Antoine Cellerier
<dionoea@videolan.org>
Thu, 1 Mar 2007 22:44:16 +0000
(22:44 +0000)
committer
Antoine Cellerier
<dionoea@videolan.org>
Thu, 1 Mar 2007 22:44:16 +0000
(22:44 +0000)
src/text/strings.c
patch
|
blob
|
history
diff --git
a/src/text/strings.c
b/src/text/strings.c
index
b686b3d
..
0f70734
100644
(file)
--- a/
src/text/strings.c
+++ b/
src/text/strings.c
@@
-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
}