raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6948e702b6618c7568203ddcd0bbaf84d88b3d8d

commit 6948e702b6618c7568203ddcd0bbaf84d88b3d8d
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Jan 11 12:17:02 2019 +0000

    warn - make buffer bigger to avoid trunc warn
---
 src/bin/e_gadcon.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_gadcon.h b/src/bin/e_gadcon.h
index c9c95b13e..4e80831a0 100644
--- a/src/bin/e_gadcon.h
+++ b/src/bin/e_gadcon.h
@@ -382,7 +382,7 @@ E_API Eina_Bool              
e_gadcon_client_visible_get(const E_Gadcon_Client *
             _p = strrchr(_ci->id, '.');                                        
             \
             if (_p) _num = atoi(_p + 1) + 1;                                   
             \
          }                                                                     
             \
-       _buf = alloca(sizeof (char) * ((_gc_class.name ? strlen(_gc_class.name) 
: 6) + 11)); \
+       _buf = alloca(((_gc_class.name ? strlen(_gc_class.name) : 0) + 40));    
             \
        sprintf(_buf, "%s.%d", _gc_class.name, _num);                           
             \
        _id = _buf;                                                             
             \
     }                                                                          
             \

-- 


Reply via email to