devilhorns pushed a commit to branch master.

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

commit b98a58f6321d7f3f792b513a7f35b660c63947f1
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Jul 24 13:12:20 2015 -0400

    enlightenment: Allocate space for terminating NULL
    
    Fixes CID1261289
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_static_grab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_static_grab.c b/src/bin/e_static_grab.c
index 8fb7a3e..8108a1d 100644
--- a/src/bin/e_static_grab.c
+++ b/src/bin/e_static_grab.c
@@ -347,7 +347,7 @@ _e_static_grab_x(E_Static_Grab *grab)
                         break;
                      }
 
-                   buffer = alloca(strlen(MODULE_OF) + strlen(module->name));
+                   buffer = alloca(strlen(MODULE_OF) + strlen(module->name) + 
1);
                    sprintf(buffer, MODULE_OF, module->name);
 
                    if (_e_static_grab_string(current, line->end, buffer, 
&vendor))

-- 


Reply via email to