Skip to content

Commit

Permalink
enlightenment: Allocate space for terminating NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtylee committed May 29, 2018
1 parent 5c866b1 commit dcbbfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/e_static_grab.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,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))
Expand Down

1 comment on commit dcbbfc4

@rbtylee
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.