eina - abstratc content - smaller stack buffer for limited size string
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 7 Jun 2020 00:28:18 +0000 (01:28 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 9 Jun 2020 21:19:10 +0000 (06:19 +0900)
no need for a 4k buffer when 128 bytes will be plenty - short string.

src/lib/eina/eina_abstract_content.c

index 7f54122..8ed4dc5 100644 (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);