forked from enlightenment/efl
test_gesture_layer: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second argument. Say Thank You to smatch for finding this issues for us.
This commit is contained in:
parent
d4e5c76b11
commit
3a4c2a9b45
|
@ -359,7 +359,7 @@ test_gesture_layer(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
char buf[PATH_MAX];
|
||||
int ind = 0;
|
||||
Photo_Object **photo_array;
|
||||
photo_array = calloc(sizeof(*photo_array), 4);
|
||||
photo_array = calloc(4, sizeof(*photo_array));
|
||||
|
||||
w = 480;
|
||||
h = 800;
|
||||
|
|
|
@ -558,7 +558,7 @@ test_gesture_layer3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
char buf[PATH_MAX];
|
||||
int ind = 0;
|
||||
Photo_Object **photo_array;
|
||||
photo_array = calloc(sizeof(*photo_array), 4);
|
||||
photo_array = calloc(4, sizeof(*photo_array));
|
||||
|
||||
w = 480;
|
||||
h = 800;
|
||||
|
|
Loading…
Reference in New Issue