enlightenment: Allocate space for terminating NULL
authorChris Michael <cp.michael@samsung.com>
Fri, 24 Jul 2015 17:12:20 +0000 (13:12 -0400)
committerChris Michael <cp.michael@samsung.com>
Fri, 24 Jul 2015 17:12:20 +0000 (13:12 -0400)
Fixes CID1261289

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_static_grab.c

index 8fb7a3e..8108a1d 100644 (file)
@@ -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))