Change notification text size 13/167813/1
authorSeungha Son <seungha.son@samsung.com>
Mon, 22 Jan 2018 06:39:55 +0000 (15:39 +0900)
committerSeungha Son <seungha.son@samsung.com>
Mon, 22 Jan 2018 07:47:24 +0000 (16:47 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I796f6d343a314a65a0e2869124222204d6b88075

src/notification.c

index 0d5ed57e66af851a5672950db08ca9e280d53011..6b22208c26566521a0d04a5232450618b2c28bc7 100755 (executable)
@@ -42,7 +42,7 @@
 
 static void (*posted_toast_message_cb)(void *data);
 
-#define NOTI_TEXT_RESULT_LEN 2048
+#define NOTI_TEXT_RESULT_LEN 4096
 #define REGULAR_UID_MIN 5000
 
 char *notification_get_app_id_by_pid(int pid)
@@ -223,7 +223,7 @@ EXPORT_API int notification_set_text(notification_h noti,
 {
        bundle *b = NULL;
        char buf_key[32] = { 0, };
-       char buf_val[1024] = { 0, };
+       char buf_val[NOTI_TEXT_RESULT_LEN] = { 0, };
        char *ret_val = NULL;
        va_list var_args;
        notification_variable_type_e var_type;
@@ -436,7 +436,7 @@ EXPORT_API int notification_get_text(notification_h noti,
                                        char **text)
 {
        char result_str[NOTI_TEXT_RESULT_LEN] = { 0, };
-       char buf_str[1024] = { 0, };
+       char buf_str[NOTI_TEXT_RESULT_LEN] = { 0, };
        char buf_key[32] = { 0, };
        char *ret_val = NULL;
        char *get_str = NULL;