summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_abstract_content.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-06-07 01:28:18 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-06-09 10:16:24 +0100
commit3f26662390c625c94cea2bccd612a988031ad7c2 (patch)
tree209b315cdee50f200ec290450925c996ecaa0ee7 /src/lib/eina/eina_abstract_content.c
parent29ae24cbf97e66e1d3985d2f515f0b02851120f7 (diff)
eina - abstratc content - smaller stack buffer for limited size string
no need for a 4k buffer when 128 bytes will be plenty - short string.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_abstract_content.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_abstract_content.c b/src/lib/eina/eina_abstract_content.c
index 7f54122a0f..8ed4dc5a48 100644
--- a/src/lib/eina/eina_abstract_content.c
+++ b/src/lib/eina/eina_abstract_content.c
@@ -321,7 +321,7 @@ _eina_value_type_content_convert_to(const Eina_Value_Type *type EINA_UNUSED, con
321 } 321 }
322 //create some fallback 322 //create some fallback
323 { 323 {
324 char buf[PATH_MAX]; 324 char buf[128];
325 char *tmp = (char*) &buf; 325 char *tmp = (char*) &buf;
326 snprintf(buf, sizeof(buf), "Content %p cannot be converted to \"text/plain;charset=utf-8\"", *ra); 326 snprintf(buf, sizeof(buf), "Content %p cannot be converted to \"text/plain;charset=utf-8\"", *ra);
327 return eina_value_type_pset(convert, convert_mem, &tmp); 327 return eina_value_type_pset(convert, convert_mem, &tmp);