summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-03 05:24:35 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-03 05:24:35 +0000
commit13a511ef46ee50d942996b3b42be48c9acb23760 (patch)
treec8f74ef03eace80f6688c77c9a34a16b074e16ed /src
parent4ae3b44c4598063a30bc3b27bd2234672baeab69 (diff)
whoever wrote this should be SERIOUSLY ashamed.
SVN revision: 66776
Diffstat (limited to 'src')
-rw-r--r--src/lib/elc_naviframe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index 66f7ca47c..b33a1c54a 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)
977 977
978 if (!item_style) 978 if (!item_style)
979 { 979 {
980 sprintf(buf, "item/basic"); 980 strcpy(buf, "item/basic");
981 eina_stringshare_replace(&navi_it->style, "basic"); 981 eina_stringshare_replace(&navi_it->style, "basic");
982 } 982 }
983 else 983 else
984 { 984 {
985 if (strlen(item_style) > sizeof(buf)) 985 snprintf(buf, sizeof(buf), "item/%s", item_style);
986 WRN("too much long style name! : naviframe=%p", WIDGET(navi_it));
987 sprintf(buf, "item/%s", item_style);
988 eina_stringshare_replace(&navi_it->style, item_style); 986 eina_stringshare_replace(&navi_it->style, item_style);
989 } 987 }
990 _elm_theme_object_set(WIDGET(navi_it), 988 _elm_theme_object_set(WIDGET(navi_it),