summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-09-11 14:42:25 +0800
committerPeng Wu <alexepico@gmail.com>2012-09-11 14:42:25 +0800
commit621f971e2574322e21aada3a08af1fb25129af0d (patch)
tree14c77dcbf5e4597dd251cae28d62886a8424fee4
parent7656210612f3de6934b72011807a8042535caa10 (diff)
downloadlibpinyin-621f971e2574322e21aada3a08af1fb25129af0d.tar.gz
libpinyin-621f971e2574322e21aada3a08af1fb25129af0d.tar.xz
libpinyin-621f971e2574322e21aada3a08af1fb25129af0d.zip
fixes a typo
-rw-r--r--src/lookup/pinyin_lookup.cpp2
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;