diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2006-01-17 22:16:46 +0000 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2006-01-17 22:16:46 +0000 |
| commit | 3d97c574dfd44ddad287578b19ee8baaecbefd30 (patch) | |
| tree | 16b3f4aee901eb59ac65d1d334acb911a5bef47e | |
| parent | 8c3a7c58113a27bc56d4b49c56538ecc27418cfd (diff) | |
| download | enigma2-3d97c574dfd44ddad287578b19ee8baaecbefd30.tar.gz enigma2-3d97c574dfd44ddad287578b19ee8baaecbefd30.zip | |
fixed undefined operation on variable 'i' (assuming big endian byte order in source array)
| -rw-r--r-- | lib/base/estring.cpp | 3 |
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) { |
