raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2017c169e7f0d43a31dee5eb3b89e32d68bd9da2

commit 2017c169e7f0d43a31dee5eb3b89e32d68bd9da2
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Nov 6 16:00:26 2018 +0000

    eina - fix warnigns of possibly too msall buffers for large numbers
    
    strings would get  truncated thanks to snprintf but make buffers
    bigger to avoid warning noise
---
 src/lib/eina/eina_log.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index 549640802e..52cf8f98ac 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -305,7 +305,7 @@ eina_log_pid_get(void)
 static inline void
 eina_log_print_level_name_get(int level, const char **p_name)
 {
-   static char buf[4];
+   static char buf[12];
    /* NOTE: if you change this, also change
     *    eina_log_print_level_name_color_get()
     *    eina_log_level_name_get() (at eina_inline_log.x)
@@ -330,7 +330,7 @@ eina_log_print_level_name_color_get_win32_console(int level,
                                                   const char **p_name,
                                                   int *p_color)
 {
-   static char buf[4];
+   static char buf[12];
    /* NOTE: if you change this, also change:
     *   eina_log_print_level_name_get()
     */
@@ -355,7 +355,7 @@ eina_log_print_level_name_color_get_posix(int level,
                                           const char **p_name,
                                           const char **p_color)
 {
-   static char buf[4];
+   static char buf[12];
    /* NOTE: if you change this, also change:
     *   eina_log_print_level_name_get()
     */

-- 


Reply via email to