whoever wrote this should be SERIOUSLY ashamed.

SVN revision: 66776
This commit is contained in:
Mike Blumenkrantz 2012-01-03 05:24:35 +00:00
parent 378c5828f4
commit 5b39daddbc
1 changed files with 2 additions and 4 deletions

View File

@ -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),