From: Peng Wu Date: Thu, 24 May 2012 03:24:48 +0000 (+0800) Subject: fixes _append_items X-Git-Tag: 0.6.91~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c43c20c416f6e0d01eb6ce8352521d81c34d0de;p=platform%2Fupstream%2Flibpinyin.git fixes _append_items --- diff --git a/src/pinyin.cpp b/src/pinyin.cpp index eb3dde0..5cd9945 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -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;