limit notification count to 99 33/44333/1
authorSoohye Shin <soohye.shin@samsung.com>
Tue, 21 Jul 2015 04:31:16 +0000 (13:31 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Tue, 21 Jul 2015 04:31:16 +0000 (13:31 +0900)
Change-Id: I325ef11e8d6ef92f8aa94f5a016b3c0fd2dfefc5
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/data/data_home.c

index 8b17560..8c6ecf1 100644 (file)
@@ -100,6 +100,9 @@ static void _get_notification(char **noti)
        _get_notification_count(NOTIFICATION_TYPE_ONGOING, &count);
        _get_notification_count(NOTIFICATION_TYPE_NOTI, &count);
 
+       if (count > 99)
+               count = 99;
+
        snprintf(buf, sizeof(buf), "%d", count);
        *noti = strdup(buf);
 }