test_disable: Extend button array to fix memory corruption
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 23 Jan 2015 11:32:42 +0000 (12:32 +0100)
committerStefan Schmidt <s.schmidt@samsung.com>
Fri, 23 Jan 2015 11:32:42 +0000 (12:32 +0100)
We are accessing btn[3] in the code so we should make sure the array it big
enough for it.

CID: 1265613

src/bin/test_disable.c

index 9895369..0dc9774 100644 (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");