diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-19 11:37:15 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-19 11:37:15 +0100 |
commit | f714ee0f55920c09738abf37d61d7f1295b5d2e7 (patch) | |
tree | cdadb35bcd943446a0acdf88eead14f3a2de5507 /epg.c | |
parent | 7b9b2ad92d7fa53013cad051173c28af3cf2061c (diff) | |
download | vdr-f714ee0f55920c09738abf37d61d7f1295b5d2e7.tar.gz vdr-f714ee0f55920c09738abf37d61d7f1295b5d2e7.tar.bz2 |
Removed some unneeded code and fixed access to unallocated memory in cEvent::FixEpgBugs()
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 1.24 2005/01/02 11:25:25 kls Exp $ + * $Id: epg.c 1.25 2005/02/19 11:35:00 kls Exp $ */ #include "epg.h" @@ -525,7 +525,7 @@ void cEvent::FixEpgBugs(void) if (description) { char *p = description; while (*p && *(p + 1) && *(p + 2)) { - if (*p == '-' && *(p + 1) == ' ' && *(p + 2) && islower(*(p - 1)) && islower(*(p + 2))) { + if (*p == '-' && *(p + 1) == ' ' && p != description && islower(*(p - 1)) && islower(*(p + 2))) { if (!startswith(p + 2, "und ")) { // special case in German, as in "Lach- und Sachgeschichten" memmove(p, p + 2, strlen(p + 2) + 1); EpgBugFixStat(5, ChannelID()); |