raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3f26662390c625c94cea2bccd612a988031ad7c2

commit 3f26662390c625c94cea2bccd612a988031ad7c2
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Jun 7 01:28:18 2020 +0100

    eina - abstratc content - smaller stack buffer for limited size string
    
    no need for a 4k buffer when 128 bytes will be plenty - short string.
---
 src/lib/eina/eina_abstract_content.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
                }
              //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);

-- 


Reply via email to