diff options
author | Peng Wu <alexepico@gmail.com> | 2012-09-11 14:42:25 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-09-11 14:42:25 +0800 |
commit | 621f971e2574322e21aada3a08af1fb25129af0d (patch) | |
tree | 14c77dcbf5e4597dd251cae28d62886a8424fee4 /src/lookup | |
parent | 7656210612f3de6934b72011807a8042535caa10 (diff) | |
download | libpinyin-621f971e2574322e21aada3a08af1fb25129af0d.tar.gz libpinyin-621f971e2574322e21aada3a08af1fb25129af0d.tar.xz libpinyin-621f971e2574322e21aada3a08af1fb25129af0d.zip |
fixes a typo
Diffstat (limited to 'src/lookup')
-rw-r--r-- | src/lookup/pinyin_lookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup.cpp b/src/lookup/pinyin_lookup.cpp index b2d4e86..547031a 100644 --- a/src/lookup/pinyin_lookup.cpp +++ b/src/lookup/pinyin_lookup.cpp @@ -334,7 +334,7 @@ bool PinyinLookup::save_next_step(int next_step_pos, lookup_value_t * cur_step, bool PinyinLookup::final_step(MatchResults & results){ //reset results - g_array_set_size(results, m_steps_content->len); + g_array_set_size(results, m_steps_content->len - 1); for ( size_t i = 0 ; i < results->len ; ++i){ phrase_token_t * token = &g_array_index(results, phrase_token_t, i); *token = null_token; |