eina - abstratc content - smaller stack buffer for limited size string

no need for a 4k buffer when 128 bytes will be plenty - short string.
This commit is contained in:
Carsten Haitzler 2020-06-07 01:28:18 +01:00
parent 29ae24cbf9
commit 3f26662390
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ _eina_value_type_content_convert_to(const Eina_Value_Type *type EINA_UNUSED, con
}
//create some fallback
{
char buf[PATH_MAX];
char buf[128];
char *tmp = (char*) &buf;
snprintf(buf, sizeof(buf), "Content %p cannot be converted to \"text/plain;charset=utf-8\"", *ra);
return eina_value_type_pset(convert, convert_mem, &tmp);