summaryrefslogtreecommitdiff
blob: 96fd9376eb53f8426bf8e130e73aace713319335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -Naur extrecmenu-1.2.orig/mymenueditrecording.c extrecmenu-1.2/mymenueditrecording.c
--- extrecmenu-1.2.orig/mymenueditrecording.c	2010-09-22 15:31:27.000000000 +0200
+++ extrecmenu-1.2/mymenueditrecording.c	2010-09-22 15:36:19.000000000 +0200
@@ -25,15 +25,15 @@
 
  if(recording)
  {
-  char *p=(char*)strrchr(recording->Name(),'~'); //TODO
+  const char *p=(char*)strrchr(recording->Name(),'~'); //TODO
   if(p)
   {
    strn0cpy(name,++p,sizeof(name));
    strn0cpy(path,recording->Name(),sizeof(path));
    
-   p=strrchr(path,'~');
-   if(p)
-    *p=0;
+   char *p2 = strrchr(path,'~');
+   if(p2)
+    *p2=0;
   }
   else
    strn0cpy(name,recording->Name(),sizeof(name));