summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-30 15:37:10 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-30 16:24:58 +0100
commit243dfb008d4b19d446ae4a3f8e2b7d2dd7fb04c2 (patch)
treea932680f5c9bbf0553afd783ed96dddeaab145ee
parent0c02f97facf1aba977f197964ac95c6b55e7f417 (diff)
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.
-rw-r--r--src/bin/test_gesture_layer.c2
-rw-r--r--src/bin/test_gesture_layer3.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/test_gesture_layer.c b/src/bin/test_gesture_layer.c
index 817926792..5f75e6f32 100644
--- a/src/bin/test_gesture_layer.c
+++ b/src/bin/test_gesture_layer.c
@@ -359,7 +359,7 @@ test_gesture_layer(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
359 char buf[PATH_MAX]; 359 char buf[PATH_MAX];
360 int ind = 0; 360 int ind = 0;
361 Photo_Object **photo_array; 361 Photo_Object **photo_array;
362 photo_array = calloc(sizeof(*photo_array), 4); 362 photo_array = calloc(4, sizeof(*photo_array));
363 363
364 w = 480; 364 w = 480;
365 h = 800; 365 h = 800;
diff --git a/src/bin/test_gesture_layer3.c b/src/bin/test_gesture_layer3.c
index 8f082396f..9d89ca921 100644
--- a/src/bin/test_gesture_layer3.c
+++ b/src/bin/test_gesture_layer3.c
@@ -558,7 +558,7 @@ test_gesture_layer3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
558 char buf[PATH_MAX]; 558 char buf[PATH_MAX];
559 int ind = 0; 559 int ind = 0;
560 Photo_Object **photo_array; 560 Photo_Object **photo_array;
561 photo_array = calloc(sizeof(*photo_array), 4); 561 photo_array = calloc(4, sizeof(*photo_array));
562 562
563 w = 480; 563 w = 480;
564 h = 800; 564 h = 800;