hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=848c33749344ffb3b291aa7f5b3a7dde285dd442
commit 848c33749344ffb3b291aa7f5b3a7dde285dd442 Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Mon Aug 11 16:33:17 2014 +0900 template: fix generate for names of templates. Summary: without escaped char '\0' in the end of name, possible generate string with trash at the end. @fix Reviewers: Hermet Subscribers: NikaWhite Projects: #enventor Differential Revision: https://phab.enlightenment.org/D1303 --- src/bin/template.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/template.c b/src/bin/template.c index 84ba41e..558bdf2 100644 --- a/src/bin/template.c +++ b/src/bin/template.c @@ -14,11 +14,12 @@ static const char * template_part_first_line_get(void) { static char buf[40]; - char name[8]; + char name[9]; int i; for (i = 0; i < 8; i++) name[i] = NAME_SEED[(rand() % NAME_SEED_LEN)]; + name[i]='\0'; snprintf(buf, sizeof(buf), "part { name: \"%s\";<br/>", name); --