From d0589662c594d9b6cea4524473813c14bef85ca7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Mar 2014 11:51:21 -0400 Subject: [PATCH] bugfix: check for unicode string end in client menu CID 1186203 --- src/bin/e_int_menus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c index f584a4fff..375f2e4f9 100644 --- a/src/bin/e_int_menus.c +++ b/src/bin/e_int_menus.c @@ -1497,7 +1497,7 @@ _e_int_menus_clients_title_abbrv(const char *title) len = 0; for (len2 = (max_len / 2); len2; len2--) #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 eina_unicode_utf8_get_next(title, &len); #endif