test_disable: Extend button array to fix memory corruption

We are accessing btn[3] in the code so we should make sure the array it big
enough for it.

CID: 1265613
This commit is contained in:
Stefan Schmidt 2015-01-23 12:32:42 +01:00
parent 16fc6785a9
commit a31628cb2e
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ void
test_layout_disable(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
Evas_Object *win, *box, *ly, *bt;
Evas_Object *fr, *btn[3], *bx, *lb;
Evas_Object *fr, *btn[4], *bx, *lb;
char buf[PATH_MAX];
win = elm_win_util_standard_add("layout", "Layout");