fixed undefined operation on variable 'i' (assuming big endian byte order in source...
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Jan 2006 22:16:46 +0000 (22:16 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Jan 2006 22:16:46 +0000 (22:16 +0000)
lib/base/estring.cpp

index 10bfbef81ca130febe685bb7fbe6f3538d8e5ddf..18b277abac1a3cfd108f404f0338991d30126e1f 100644 (file)
@@ -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);
                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)
                        {
                        ++i;
                        switch(n)
                        {