personal_voice = iter_personal_voice->data;
SLOG(LOG_DEBUG, TAG_TTSCONFIG, " [%dth] unique_id(%s)", j, personal_voice->unique_id);
- if (0 == strncmp(unique_id, personal_voice->unique_id, strlen(unique_id))) {
+ if (0 == strncmp(unique_id, personal_voice->unique_id, strlen(unique_id) + 1)) {
*matched = true;
break;
}
/* Get handle data from list */
voice = iter->data;
- if (0 == strncmp(voice->language, g_engine_info->default_lang, strlen(g_engine_info->default_lang))) {
+ if (0 == strncmp(voice->language, g_engine_info->default_lang, strlen(g_engine_info->default_lang) + 1)) {
voice_selected = voice;
if (voice->type == type) {
if (type == TTSE_VOICE_TYPE_PERSONAL && NULL != ptts_id) {
- if (0 != strncmp(voice->ptts_id, ptts_id, strlen(voice->ptts_id))) {
+ if (0 != strncmp(voice->ptts_id, ptts_id, strlen(voice->ptts_id) + 1)) {
iter = g_list_next(iter);
continue;
}