Change notification text size 04/167804/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 06:40:22 +0000 (15:40 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I796f6d343a314a65a0e2869124222204d6b88075

src/notification.c

index 0ad0deb..d08b661 100755 (executable)
@@ -44,7 +44,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)
@@ -225,7 +225,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;
@@ -437,7 +437,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;