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:
Stefan Schmidt 2015-11-30 15:37:10 +01:00
parent d4e5c76b11
commit 3a4c2a9b45
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;