edje: fix unitialized buffer.

SVN revision: 76168
This commit is contained in:
Cedric BAIL 2012-09-05 07:15:10 +00:00
parent ac5f55d3d1
commit 9e2becd6ef
1 changed files with 2 additions and 2 deletions

View File

@ -501,10 +501,10 @@ stack_pop(void)
char *hierarchy;
char *lookup;
hierarchy = alloca(eina_strbuf_length_get(stack_buf));
hierarchy = alloca(eina_strbuf_length_get(stack_buf) + 1);
memcpy(hierarchy,
eina_strbuf_string_get(stack_buf),
eina_strbuf_length_get(stack_buf));
eina_strbuf_length_get(stack_buf) + 1);
/* This is nasty, but it's the way to get parts.part when they are collapsed together. still not perfect */
lookup = strrchr(hierarchy + eina_strbuf_length_get(stack_buf) - tmp_length, '.');