X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c17bcb844883451b564446bf7843e7b3f862fe48..58c7cd12b9035450e702d36dfdce63bfd008bcd0:/src/common/tokenzr.cpp

diff --git a/src/common/tokenzr.cpp b/src/common/tokenzr.cpp
index 837243cac6..6b5d18e178 100644
--- a/src/common/tokenzr.cpp
+++ b/src/common/tokenzr.cpp
@@ -66,7 +66,7 @@ int wxStringTokenizer::CountTokens() const
         if (pos != -1)
         {
             count++;
-            p_string = p_string(0, pos);
+            p_string = p_string(pos+1, p_string.Length());
         }
         else
         {