Fix buffer size in garray 97/215497/2 accepted/tizen/unified/20191011.015345 accepted/tizen/unified/20191014.062520 submit/tizen/20191008.062147 submit/tizen/20191010.061714
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 9 Oct 2019 23:56:36 +0000 (08:56 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 10 Oct 2019 04:19:38 +0000 (04:19 +0000)
Change-Id: Idc188b84755981a56f7573689cf7502f701a2b86
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/server/media-server-socket.c

index 5f6c41e..cf91705 100644 (file)
@@ -68,7 +68,7 @@ static int __ms_add_owner(int pid, int client_sock, char *path)
        MS_DBG_RETV_IF(len == 0, MS_MEDIA_ERR_NONE);
 
        if (!owner_list) {
-               owner_list = g_array_new(FALSE, FALSE, sizeof(ms_req_owner_data));
+               owner_list = g_array_new(FALSE, FALSE, sizeof(ms_req_owner_data *));
                MS_DBG_RETVM_IF(!owner_list, MS_MEDIA_ERR_OUT_OF_MEMORY, "g_array_new failed");
                g_array_set_clear_func(owner_list, __destroy_owner_data);
        }