1 diff -urNad vdr-plugin-epgsearch-0.9.24~/epgsearchsvdrp.c vdr-plugin-epgsearch-0.9.24/epgsearchsvdrp.c
2 --- vdr-plugin-epgsearch-0.9.24~/epgsearchsvdrp.c 2008-04-13 20:53:44.000000000 +0200
3 +++ vdr-plugin-epgsearch-0.9.24/epgsearchsvdrp.c 2009-10-26 20:27:07.000000000 +0100
8 - char* pipePos = strchr(Option, '|');
9 + const char* pipePos = strchr(Option, '|');
13 - const char* oldName = Option;
14 - const char* newName = pipePos+1;
15 + int index = pipePos - Option;
16 + char* oldName = strdup(Option);
17 + *(oldName + index) = 0;
18 + const char* newName = oldName + index + 1;
19 if (strlen(oldName) > 0 && strlen(newName) > 0)
21 cChannelGroup *changrp = ChannelGroups.GetGroupByName(Option);
27 return cString::sprintf("renamed channel group '%s' to '%s'", oldName, newName);
34 return cString::sprintf("channel group '%s' not defined", Option);
40 return cString("Error in channel group parameters");
41 diff -urNad vdr-plugin-epgsearch-0.9.24~/epgsearchtools.c vdr-plugin-epgsearch-0.9.24/epgsearchtools.c
42 --- vdr-plugin-epgsearch-0.9.24~/epgsearchtools.c 2008-04-13 20:53:42.000000000 +0200
43 +++ vdr-plugin-epgsearch-0.9.24/epgsearchtools.c 2009-10-26 20:27:07.000000000 +0100
47 // extract a single line
48 - char* lf = strchr(tmp, '\n');
49 + const char* lf = strchr(tmp, '\n');
52 line = strndup(tmp, lf-tmp);
53 diff -urNad vdr-plugin-epgsearch-0.9.24~/menu_dirselect.c vdr-plugin-epgsearch-0.9.24/menu_dirselect.c
54 --- vdr-plugin-epgsearch-0.9.24~/menu_dirselect.c 2008-04-13 20:53:44.000000000 +0200
55 +++ vdr-plugin-epgsearch-0.9.24/menu_dirselect.c 2009-10-26 20:27:07.000000000 +0100
60 - char* pos = strchr(szDir, '~');
61 + const char* pos = strchr(szDir, '~');
65 diff -urNad vdr-plugin-epgsearch-0.9.24~/searchtimer_thread.c vdr-plugin-epgsearch-0.9.24/searchtimer_thread.c
66 --- vdr-plugin-epgsearch-0.9.24~/searchtimer_thread.c 2008-04-28 18:22:31.000000000 +0200
67 +++ vdr-plugin-epgsearch-0.9.24/searchtimer_thread.c 2009-10-26 20:27:28.000000000 +0100
72 - char* begin = strstr(aux, "<epgsearch>");
73 - char* end = strstr(aux, "</epgsearch>");
74 + const char* begin = strstr(aux, "<epgsearch>");
75 + const char* end = strstr(aux, "</epgsearch>");
78 if (begin == aux) strcpy(tmpaux, ""); else strn0cpy(tmpaux, aux, begin-aux+1);