From 437a9a894dc1b33fde3ddaba02d2cd03696bc1c2 Mon Sep 17 00:00:00 2001 From: shufewhx Date: Sun, 23 Apr 2023 07:32:03 +0000 Subject: [PATCH] fixed ec99b2e from https://gitee.com/shufewhx/distributedschedule_samgr_lite/pulls/5 fix dm ipcio reply size Signed-off-by: shufewhx --- samgr_endpoint/source/endpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samgr_endpoint/source/endpoint.c b/samgr_endpoint/source/endpoint.c index 371a0cb..773cbd9 100755 --- a/samgr_endpoint/source/endpoint.c +++ b/samgr_endpoint/source/endpoint.c @@ -463,8 +463,8 @@ static void HandleIpc(const Request *request, const Response *response) IpcIo req; IpcIoInitFromMsg(&req, ipcMsg); IpcIo reply; - uint8 data[IPC_IO_DATA_MAX]; - IpcIoInit(&reply, data, IPC_IO_DATA_MAX, MAX_OBJECT_NUM); + uint8 data[IPC_IO_BIG_MAX]; + IpcIoInit(&reply, data, IPC_IO_BIG_MAX, MAX_OBJECT_NUM); router->proxy->Invoke(router->proxy, request->msgValue, ipcMsg, &req, &reply); uint32_t flag = 0; GetFlag(ipcMsg, &flag); @@ -687,4 +687,4 @@ static boolean SearchFixedPolicy(uid_t callingUid, PolicyTrans policy) } } return FALSE; -} \ No newline at end of file +} -- Gitee