summaryrefslogtreecommitdiff
path: root/searchtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'searchtimer.c')
-rw-r--r--searchtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchtimer.c b/searchtimer.c
index 6570c55..fe78f6c 100644
--- a/searchtimer.c
+++ b/searchtimer.c
@@ -238,7 +238,7 @@ bool cTVGuideSearchTimer::Parse(bool readTemplate) {
} else if (useChannel == 1) {
char *channelMinbuffer = NULL;
char *channelMaxbuffer = NULL;
- int channels = sscanf(values[value].c_str(), "%a[^|]|%a[^|]", &channelMinbuffer, &channelMaxbuffer);
+ int channels = sscanf(values[value].c_str(), "%m[^|]|%m[^|]", &channelMinbuffer, &channelMaxbuffer);
channelMin = Channels.GetByChannelID(tChannelID::FromString(channelMinbuffer), true, true);
if (!channelMin) {
channelMin = channelMax = NULL;