snprintf goooooood :)

SVN revision: 12117
This commit is contained in:
tsauerbeck 2004-11-01 19:14:23 +00:00 committed by tsauerbeck
parent 2c9986c4e7
commit ef017cb633
1 changed files with 1 additions and 2 deletions

View File

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