enlightenment: Allocate space for terminating NULL

Fixes CID1261289

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-24 13:12:20 -04:00
parent f25f074be5
commit b98a58f632
1 changed files with 1 additions and 1 deletions

View 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))