summaryrefslogtreecommitdiff
path: root/dvbsubtitle.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-08 08:27:24 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-08 08:27:24 +0200
commit4f7523a3a29297079aac404f4f5021dec6ddbe97 (patch)
tree96456b3a3676bc4f4ca81d29e62f71479960508b /dvbsubtitle.c
parent353233a27e57c6f1b5ac13bac95b191a2b5f556b (diff)
downloadvdr-4f7523a3a29297079aac404f4f5021dec6ddbe97.tar.gz
vdr-4f7523a3a29297079aac404f4f5021dec6ddbe97.tar.bz2
Fixed character comparisons in cSubtitleObject::DecodeCharacterString()
Diffstat (limited to 'dvbsubtitle.c')
-rw-r--r--dvbsubtitle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbsubtitle.c b/dvbsubtitle.c
index ab755c4b..99550697 100644
--- a/dvbsubtitle.c
+++ b/dvbsubtitle.c
@@ -7,7 +7,7 @@
* Original author: Marco Schluessler <marco@lordzodiac.de>
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
*
- * $Id: dvbsubtitle.c 2.31 2012/03/16 11:56:56 kls Exp $
+ * $Id: dvbsubtitle.c 2.32 2012/05/08 08:17:17 kls Exp $
*/
@@ -217,7 +217,7 @@ void cSubtitleObject::DecodeCharacterString(const uchar *Data, int NumberOfCodes
char txt[NumberOfCodes + 1];
char *p = txt;
for (int i = 2; i < NumberOfCodes; ++i) {
- char c = Data[i * 2 + 1] & 0xFF;
+ uchar c = Data[i * 2 + 1] & 0xFF;
if (c == 0)
break;
if (' ' <= c && c <= '~' || c == '\n' || 0xA0 <= c)