Ticket #11300: 0005-Fixes-10604.-Fixes-of-by-1-error-in-m3u-parsing-disc.patch

File 0005-Fixes-10604.-Fixes-of-by-1-error-in-m3u-parsing-disc.patch, 1.1 KB (added by gradhika.dn@…, 8 years ago)

merged devel/rtp 0e961e485fa6

  • mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp

    From 697823363d688ac37775ef7375646e17cb96e851 Mon Sep 17 00:00:00 2001
    From: Daniel Thor Kristjansson <danielk@cuymedia.net>
    Date: Fri, 11 May 2012 11:34:31 -0400
    Subject: [PATCH 5/5] Fixes #10604. Fixes of by 1 error in m3u parsing
     discovered by andrej.filipcic AT ijs.si
    
    ---
     .../libmythtv/channelscan/iptvchannelfetcher.cpp   |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp b/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
    index 91af556..160f7a5 100644
    a b static bool parse_chan_info(const QString &rawdata, 
    365365            }
    366366            else if (line.startsWith("#EXTMYTHTV:"))
    367367            {
    368                 QString data = line.mid(line.indexOf(':'));
     368                QString data = line.mid(line.indexOf(':')+1);
    369369                QString key = data.left(data.indexOf('='));
    370370                if (!key.isEmpty())
    371371                    values[key] = data.mid(data.indexOf('=')+1);