From 3801b6db2432ce1a2a94f7c0d674a31c679e02c9 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Tue, 3 Jan 2012 05:24:35 +0000 Subject: [PATCH] whoever wrote this should be SERIOUSLY ashamed. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66776 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elc_naviframe.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 66f7ca4..b33a1c5 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -977,14 +977,12 @@ _item_style_set(Elm_Naviframe_Item *navi_it, const char *item_style) if (!item_style) { - sprintf(buf, "item/basic"); + strcpy(buf, "item/basic"); eina_stringshare_replace(&navi_it->style, "basic"); } else { - if (strlen(item_style) > sizeof(buf)) - WRN("too much long style name! : naviframe=%p", WIDGET(navi_it)); - sprintf(buf, "item/%s", item_style); + snprintf(buf, sizeof(buf), "item/%s", item_style); eina_stringshare_replace(&navi_it->style, item_style); } _elm_theme_object_set(WIDGET(navi_it), -- 2.7.4