diff options
Diffstat (limited to 'src/Phrase.h')
-rw-r--r-- | src/Phrase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Phrase.h b/src/Phrase.h index 66f674d..2fa26ea 100644 --- a/src/Phrase.h +++ b/src/Phrase.h @@ -29,7 +29,7 @@ struct _Phrase { Phrase & operator += (const Phrase & a) { g_assert (len + a.len <= MAX_PHRASE_LEN); - strcat (phrase, a.phrase); + g_strlcat (phrase, a.phrase, sizeof (phrase)); for (guint i = 0; i < a.len; i++) { pinyin_id[len + i][0] = a.pinyin_id[i][0]; pinyin_id[len + i][1] = a.pinyin_id[i][1]; |