diff --git a/src/dict/stardict.cc b/src/dict/stardict.cc index c7f12cd5..27a89d86 100644 --- a/src/dict/stardict.cc +++ b/src/dict/stardict.cc @@ -1687,7 +1687,7 @@ static void handleIdxSynFile( string const & fileName, if ( strstr( headword, "&#" ) ) { // Decode some html-coded symbols in headword headword = Html::unescapeUtf8( headword ); - wordLen = strlen( headword ); + wordLen = headword.length(); } if ( !isSynFile ) {