diff -r 122d2b873fd1 -r 30b30f9da0b7 imgtools/imglib/host/utf16string.cpp --- a/imgtools/imglib/host/utf16string.cpp Fri Jun 25 20:58:33 2010 +0800 +++ b/imgtools/imglib/host/utf16string.cpp Tue Jun 29 14:52:54 2010 +0800 @@ -41,6 +41,7 @@ UTF16String::UTF16String(const TUint16* aUtf16Str,TInt aLength /* = -1*/){ if(aLength < 0){ + aLength = 0 ; const TUint16* p = aUtf16Str ; while(*p){ p++ ;