]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove colon from filenames, causes problem for windows users
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 1 Feb 2010 20:40:05 +0000 (20:40 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 1 Feb 2010 20:40:05 +0000 (20:40 +0000)
src/dvr/dvr_rec.c

index 3e4beecc2d0530d9616828999465b262f1bc6b64..f8470d797c21a5868c87aa34914937a766e67a75 100644 (file)
@@ -145,8 +145,9 @@ static void
 deslashify(char *s)
 {
   int i, len = strlen(s);
-  for(i = 0; i < len; i++) if(s[i]  == '/')
-    s[i] = '-';
+  for(i = 0; i < len; i++) 
+    if(s[i]  == '/' || s[i] == ':')
+      s[i] = '-';
 }
 
 /**