Use thread-safe function 28/63128/1 accepted/tizen/ivi/20160323.013554 accepted/tizen/mobile/20160323.013502 accepted/tizen/tv/20160323.013517 accepted/tizen/wearable/20160323.013537 submit/tizen/20160322.121104
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 22 Mar 2016 07:33:01 +0000 (16:33 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Tue, 22 Mar 2016 07:33:01 +0000 (16:33 +0900)
Change-Id: I78a659bba1153cd7d2b1e74f989729d3a3073888
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/message-port.c

index dacd5ae..3764a4d 100755 (executable)
@@ -715,6 +715,7 @@ static bool send_message(GVariant *parameters, GDBusMethodInvocation *invocation
        message_port_local_port_info_s *mi;
        message_port_callback_info_s *callback_info;
        int local_reg_id = 0;
+       char buf[1024];
 
        g_variant_get(parameters, "(ssbbssbus)", &local_appid, &local_port, &local_trusted, &bi_dir,
                        &remote_appid, &remote_port, &remote_trusted, &len, &raw);
@@ -791,7 +792,7 @@ static bool send_message(GVariant *parameters, GDBusMethodInvocation *invocation
 
                callback_info->gio_read = g_io_channel_unix_new(fd);
                if (!callback_info->gio_read) {
-                       _LOGE("Error is %s\n", strerror(errno));
+                       _LOGE("Error is %s\n", strerror_r(errno, buf, sizeof(buf)));
                        __callback_info_free(callback_info);
                        return -1;
                }