]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
EPG: fix - handle CR-LF in the DVB string par4ser, fixes #3968
authorJaroslav Kysela <perex@perex.cz>
Mon, 2 Jan 2017 16:39:58 +0000 (17:39 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 2 Jan 2017 16:39:58 +0000 (17:39 +0100)
src/input/mpegts/dvb_support.c

index 16de3eee56f03088e30b76140db2f90c1c7c708c..17c1778abb33a08a5448f0d4c2a59a399c201541 100644 (file)
@@ -141,6 +141,7 @@ static inline size_t conv_8859(int conv,
       if (c == 0x8a) {
         *dst = '\n';
         (*dstlen)--;
+        dst++;
       }
     } else {
       // map according to character table, skipping
@@ -182,6 +183,7 @@ static inline size_t conv_6937(const uint8_t *src, size_t srclen,
       if (c == 0x8a) {
         *dst = '\n';
         (*dstlen)--;
+        dst++;
       }
     } else {
       uint16_t uc;