raster's snprintf() 'fix' applies here, too

SVN revision: 12133
This commit is contained in:
tsauerbeck 2004-11-02 17:05:37 +00:00 committed by tsauerbeck
parent 1bb5bf204f
commit 1797dfed01
1 changed files with 3 additions and 1 deletions

View File

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