Add MUSE_DRM module and update message size for MUSE_DRM 17/89817/1
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 27 Sep 2016 06:28:10 +0000 (15:28 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 27 Sep 2016 06:28:10 +0000 (15:28 +0900)
[Version] 0.1.12
[Profile] Common
[Issue Type] Fix bugs

Change-Id: I771db617299a701bffee5a4a5ffee68e6bcc3d1d

include/muse_core_module.h
packaging/mused.spec
src/muse_core_log.c

index e4fd1da..d8c9639 100644 (file)
@@ -36,6 +36,7 @@ typedef enum {
        MUSE_CAMERA,
        MUSE_RECORDER,
        MUSE_SOUND,
+       MUSE_DRM,
        MUSE_MODULE_MAX
 } muse_core_api_module_e;
 
index 8d2ae9f..d3fc8fd 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A Multimedia Daemon in Tizen Native API
-Version:    0.1.11
+Version:    0.1.12
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index e1d352f..e24b869 100644 (file)
@@ -425,6 +425,8 @@ static void _muse_core_log_set_msg(char *msg)
 
        size_t size = strlen(msg);
 
+       size = size > MUSE_MSG_MAX_LENGTH ? MUSE_MSG_MAX_LENGTH : size;
+
        memcpy(g_muse_core_log->buf, msg, size);
        memcpy(g_muse_core_log->buf + size, "\0", 1);
 }