forked from enlightenment/efl
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:
parent
a772c54757
commit
b310e5892c
|
@ -1246,7 +1246,7 @@ object_text_font_cache_dir_add(char *dir)
|
||||||
char fname[4096], fdef[4096];
|
char fname[4096], fdef[4096];
|
||||||
|
|
||||||
/* read font alias lines */
|
/* 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;
|
Evas_Font_Alias *fa;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue