From 3d97c574dfd44ddad287578b19ee8baaecbefd30 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 17 Jan 2006 22:16:46 +0000 Subject: fixed undefined operation on variable 'i' (assuming big endian byte order in source array) --- lib/base/estring.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/base/estring.cpp b/lib/base/estring.cpp index 10bfbef8..18b277ab 100644 --- a/lib/base/estring.cpp +++ b/lib/base/estring.cpp @@ -341,7 +341,8 @@ std::string convertDVBUTF8(const unsigned char *data, int len, int table, int ts case 0x10: { // eDebug("(0x10)text encoded in ISO-8859-%d",n); - int n=(data[++i]<<8)|(data[++i]); + int n=(data[++i]<<8); + n |= (data[++i]); ++i; switch(n) { -- cgit v1.2.3