}
AppLogDebug("result of byte count is %s",GetErrorMessage(r));
checkByteCount = checkByteCount + byteCount;
- lengthOfFinalString++;
+
+ if( checkByteCount < tempLength)
+ {
+ lengthOfFinalString++;
+ }
}
r = __pNameEditField->GetText().SubString(0, lengthOfFinalString, currentInput);