[prevent] fix prevent 45/51345/2
authortw123.kim <tw123.kim@samsung.com>
Wed, 9 Sep 2015 13:43:27 +0000 (22:43 +0900)
committerJeesun Kim <iamjs.kim@samsung.com>
Mon, 9 Nov 2015 03:24:58 +0000 (12:24 +0900)
Change-Id: I5e4d5193dc2631ee04171d5ef8a024fb973b3f77

server/cal_server_contacts.c

index 760e66d..a086aa8 100644 (file)
@@ -180,7 +180,7 @@ static int cal_server_contacts_delete_event(int contact_id, int **out_array, int
                        break;
                }
 
-               if (max_count < index) {
+               if (max_count <= index) {
                        max_count *= 2;
                        array = realloc(array, max_count *sizeof(int));
                        if (NULL == array) {