more efficient :) (snprintf is a bit of a sledgehammer - if we can do it

simply.. why not? :) )
:)


SVN revision: 12119
This commit is contained in:
Carsten Haitzler 2004-11-02 00:05:27 +00:00
parent ef017cb633
commit a9eafd9461
1 changed files with 3 additions and 1 deletions

View File

@ -511,7 +511,9 @@ _edje_part_recalc_single(Edje *ed,
if ((fnt->entry) && (!strcmp(fnt->entry, font)))
{
snprintf(buf, sizeof(buf), "fonts/%s", font);
strcpy(buf, "fonts/");
strncpy(buf + 6, font, sizeof(buf) - 7);
buf[sizeof(buf) - 1] = 0;
font = buf;
inlined_font = 1;
break;