Revise the time buffer array size 43/239343/1 accepted/tizen/unified/20200727.132111 submit/tizen/20200724.062205
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 24 Jul 2020 05:28:51 +0000 (14:28 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Fri, 24 Jul 2020 05:28:53 +0000 (14:28 +0900)
Change-Id: I75972a43b18c2322f3b4a834a72037b638bcee51

core/src/muse_core.c
server/src/muse_server_private.c

index 67c3365..55ab9e3 100644 (file)
@@ -717,7 +717,7 @@ void muse_core_change_time_format(int val, char *time_buf)
 void muse_core_dump_fd_state(int fd)
 {
        int sec = 0;
-       char time_buf[MUSE_MSG_LEN];
+       char time_buf[MUSE_MSG_TIME_LEN];
 
        g_mutex_lock(&fd_state_lock);
        sec = GPOINTER_TO_INT(g_hash_table_lookup(fd_state_table, GINT_TO_POINTER(fd)));
index 597c656..5de95ab 100644 (file)
@@ -261,7 +261,7 @@ static gboolean _ms_connection_handler(GIOChannel *source, GIOCondition conditio
        intptr_t module_addr = 0;
        GQueue *instance_queue = NULL;
        ms_connection_t *connection = NULL;
-       char time_buf[MUSE_MSG_LEN];
+       char time_buf[MUSE_MSG_TIME_LEN];
 
        muse_return_val_if_fail(channel == MUSE_CHANNEL_MSG || channel == MUSE_CHANNEL_DATA, FALSE);
 
@@ -412,7 +412,7 @@ static void _ms_check_idle_state(void)
        uint32_t elapsed_time;
        struct timespec tv;
        static int period_idx = 1;
-       char time_buf[MUSE_MSG_LEN];
+       char time_buf[MUSE_MSG_TIME_LEN];
 
        muse_return_if_fail(muse_server);
        muse_return_if_fail(muse_server->state == MUSE_SERVER_STATE_READY);
@@ -579,7 +579,7 @@ static void _ms_diag_deinit(void)
 static gboolean _ms_idle_cb(gpointer user_data)
 {
        struct timespec tv;
-       char time_buf[MUSE_MSG_LEN];
+       char time_buf[MUSE_MSG_TIME_LEN];
 
        if (!ms_create_ready_file())
                LOGE("%s file creation is failed", MUSE_SERVER_READY);