aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2006-01-17 22:16:46 +0000
committerAndreas Oberritter <obi@opendreambox.org>2006-01-17 22:16:46 +0000
commit3d97c574dfd44ddad287578b19ee8baaecbefd30 (patch)
tree16b3f4aee901eb59ac65d1d334acb911a5bef47e /lib
parent8c3a7c58113a27bc56d4b49c56538ecc27418cfd (diff)
downloadenigma2-3d97c574dfd44ddad287578b19ee8baaecbefd30.tar.gz
enigma2-3d97c574dfd44ddad287578b19ee8baaecbefd30.zip
fixed undefined operation on variable 'i' (assuming big endian byte order in source array)
Diffstat (limited to 'lib')
-rw-r--r--lib/base/estring.cpp3
1 files changed, 2 insertions, 1 deletions
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)
{