forked from enlightenment/enlightenment
bugfix: check for unicode string end in client menu
CID 1186203
This commit is contained in:
parent
2b3906d8da
commit
d0589662c5
|
@ -1497,7 +1497,7 @@ _e_int_menus_clients_title_abbrv(const char *title)
|
||||||
len = 0;
|
len = 0;
|
||||||
for (len2 = (max_len / 2); len2; len2--)
|
for (len2 = (max_len / 2); len2; len2--)
|
||||||
#if (EINA_VERSION_MAJOR > 1) || (EINA_VERSION_MINOR >= 8)
|
#if (EINA_VERSION_MAJOR > 1) || (EINA_VERSION_MINOR >= 8)
|
||||||
eina_unicode_utf8_next_get(title, &len);
|
if (!eina_unicode_utf8_next_get(title, &len)) break;
|
||||||
#else
|
#else
|
||||||
eina_unicode_utf8_get_next(title, &len);
|
eina_unicode_utf8_get_next(title, &len);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue