evas - font dir fonts.alias - limit alias parse length

a rouge fonts.alias file in a font dir/path could contain long strings
that buffers dont have space for, so limit length of string.

@fix
This commit is contained in:
Carsten Haitzler 2017-06-08 14:48:08 +09:00
parent a772c54757
commit b310e5892c
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ object_text_font_cache_dir_add(char *dir)
char fname[4096], fdef[4096];
/* read font alias lines */
while (fscanf(f, "%4090s %[^\n]\n", fname, fdef) == 2)
while (fscanf(f, "%4090s %4090[^\n]\n", fname, fdef) == 2)
{
Evas_Font_Alias *fa;