Change the template limit comparison syntax 25/116025/1
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 22 Feb 2017 11:34:57 +0000 (20:34 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Wed, 22 Feb 2017 11:34:57 +0000 (20:34 +0900)
- up to 11 are stored.

Change-Id: I0696e0a3ed42ee65c063dd38b357f86b911660de
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification_service.c

index 2ba3b65..66cc2dd 100755 (executable)
@@ -1605,7 +1605,7 @@ int notification_add_noti_template(GVariant *parameters, GVariant **reply_body,
                }
 
                ret = notification_noti_check_count_for_template(noti, &count);
-               if (count > NOTI_TEMPLATE_LIMIT)
+               if (count >= NOTI_TEMPLATE_LIMIT)
                        return NOTIFICATION_ERROR_MAX_EXCEEDED;
 
                ret = notification_noti_add_template(noti, template_name);