summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-06 16:00:26 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:58 +0000
commit2017c169e7f0d43a31dee5eb3b89e32d68bd9da2 (patch)
treec2071546c8c996706e30a579d4e348e240339a8b /src/lib/eina
parente7771438a25382a2e4fabe33753456dcde8cab40 (diff)
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
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_log.c6
1 files 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)
305static inline void 305static inline void
306eina_log_print_level_name_get(int level, const char **p_name) 306eina_log_print_level_name_get(int level, const char **p_name)
307{ 307{
308 static char buf[4]; 308 static char buf[12];
309 /* NOTE: if you change this, also change 309 /* NOTE: if you change this, also change
310 * eina_log_print_level_name_color_get() 310 * eina_log_print_level_name_color_get()
311 * eina_log_level_name_get() (at eina_inline_log.x) 311 * 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,
330 const char **p_name, 330 const char **p_name,
331 int *p_color) 331 int *p_color)
332{ 332{
333 static char buf[4]; 333 static char buf[12];
334 /* NOTE: if you change this, also change: 334 /* NOTE: if you change this, also change:
335 * eina_log_print_level_name_get() 335 * eina_log_print_level_name_get()
336 */ 336 */
@@ -355,7 +355,7 @@ eina_log_print_level_name_color_get_posix(int level,
355 const char **p_name, 355 const char **p_name,
356 const char **p_color) 356 const char **p_color)
357{ 357{
358 static char buf[4]; 358 static char buf[12];
359 /* NOTE: if you change this, also change: 359 /* NOTE: if you change this, also change:
360 * eina_log_print_level_name_get() 360 * eina_log_print_level_name_get()
361 */ 361 */