summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-04-21 14:10:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-04-21 14:10:31 +0200
commit2e3030a963efe5f98062f25af03e87b79b25ea38 (patch)
tree15d75dbc0f5693dc533572ea4dce2b572bdd4b08 /recording.c
parentfb38680302ca6b5b737ea295709495abfafe7325 (diff)
downloadvdr-2e3030a963efe5f98062f25af03e87b79b25ea38.tar.gz
vdr-2e3030a963efe5f98062f25af03e87b79b25ea38.tar.bz2
Now encoding '.' at the end of a directory name in case of VFAT=11.0.1
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index b19e8b73..e6370453 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.60 2002/04/01 10:51:23 kls Exp $
+ * $Id: recording.c 1.61 2002/04/21 14:02:55 kls Exp $
*/
#include "recording.h"
@@ -222,7 +222,6 @@ static char *ExchangeChars(char *s, bool ToFileSystem)
case '+':
case ',':
case '-':
- case '.':
case ';':
case '=':
case '0' ... '9':
@@ -237,7 +236,8 @@ static char *ExchangeChars(char *s, bool ToFileSystem)
case ' ': *p = '_'; break;
case '~': *p = '/'; break;
// characters that have to be encoded:
- default: {
+ default:
+ if (*p != '.' || !*(p + 1) || *(p + 1) == '~') { // Windows can't handle '.' at the end of directory names
int l = p - s;
s = (char *)realloc(s, strlen(s) + 10);
p = s + l;