aboutsummaryrefslogtreecommitdiff
path: root/lib/base/estring.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-11 03:30:49 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-11 03:30:49 +0000
commitd9be54633b8e187a1aa3f2f8f9242af73b9316a4 (patch)
treeb1a34f6e2322ce110bde632d922a0ef48a01e9dd /lib/base/estring.cpp
parent6d1b9345ba2d42a89aa6bb04a56a91983972c3b7 (diff)
downloadenigma2-d9be54633b8e187a1aa3f2f8f9242af73b9316a4.tar.gz
enigma2-d9be54633b8e187a1aa3f2f8f9242af73b9316a4.zip
fix bug: last char in removeDVBChars was removed
Diffstat (limited to 'lib/base/estring.cpp')
-rw-r--r--lib/base/estring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base/estring.cpp b/lib/base/estring.cpp
index 22b65698..4259c58f 100644
--- a/lib/base/estring.cpp
+++ b/lib/base/estring.cpp
@@ -595,13 +595,13 @@ std::string removeDVBChars(const std::string &s)
int len = s.length();
- for(int i = 0; i < len-1; i++)
+ for(int i = 0; i < len; i++)
{
unsigned char c1 = s[i];
unsigned int c;
/* UTF8? decode (but only simple) */
- if(c1 > 0x80)
+ if((c1 > 0x80) && (i < len-1))
{
unsigned char c2 = s[i + 1];
c = ((c1&0x3F)<<6) + (c2&0x3F);