fixes _append_items
authorPeng Wu <alexepico@gmail.com>
Thu, 24 May 2012 03:24:48 +0000 (11:24 +0800)
committerPeng Wu <alexepico@gmail.com>
Thu, 24 May 2012 03:24:48 +0000 (11:24 +0800)
src/pinyin.cpp

index eb3dde0bc3ae237dcfe51a9bf6114f5993bc4e66..5cd99459b324aef10f68c7e556bda1d7f14b3db3 100644 (file)
@@ -572,7 +572,7 @@ static void _append_items(pinyin_context_t * context,
                           lookup_candidate_t * template_item,
                           CandidateVector items) {
     /* reduce and append to a single GArray. */
-    for (size_t m = 0; m <= PHRASE_INDEX_LIBRARY_COUNT; ++m) {
+    for (size_t m = 0; m < PHRASE_INDEX_LIBRARY_COUNT; ++m) {
         if (NULL == ranges[m])
             continue;