summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-20 13:56:38 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-20 13:56:38 +0200
commit57c2b211e4c600a35dab470b9319d9c025736437 (patch)
tree7f019dcd6b05faa84dc668ea8fdfb549329268ee /tools.c
parent3796bebfc5d82e213631a4c004458b154573d808 (diff)
downloadvdr-57c2b211e4c600a35dab470b9319d9c025736437.tar.gz
vdr-57c2b211e4c600a35dab470b9319d9c025736437.tar.bz2
Fixed handling single byte characters >0x7F in Utf8ToArray()
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index 2e646d19..46b691b9 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.131 2007/07/16 15:23:28 kls Exp $
+ * $Id: tools.c 1.132 2007/07/20 13:17:40 kls Exp $
*/
#include "tools.h"
@@ -685,7 +685,7 @@ int Utf8ToArray(const char *s, uint *a, int Size)
int n = 0;
while (*s && --Size > 0) {
if (cCharSetConv::SystemCharacterTable())
- *a++ = *s++;
+ *a++ = (uchar)(*s++);
else {
int sl = Utf8CharLen(s);
*a++ = Utf8CharGet(s, sl);