Evas font: font_load use the correct string.

Thanks vtorri for the catch.

SVN revision: 62207
This commit is contained in:
Tom Hacohen 2011-08-08 14:47:35 +00:00
parent d0429906c2
commit c416b7c843
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ evas_font_load(Evas *evas, Evas_Font_Description *fdesc, const char *source, Eva
char *tmp = alloca((end - start) + 1);
strncpy(tmp, start, end - start);
tmp[end - start] = 0;
FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) start);
FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) tmp);
}
else
{