提交 c7216898 编写于 作者: S stivn

Modified

Signed-off-by: Nstivn <sunteng10@huawei.com>
上级 597323bc
......@@ -207,9 +207,8 @@ int DistributedAgent::DoCmdServer(int serverSockFd)
auto pclinereturn = reinterpret_cast<DistributedMsg *>(returnValue);
pclinereturn->no = pcline->no;
pclinereturn->cmdTestType = htons(DST_COMMAND_CALL);
if (sprintf_s(pclinereturn->alignmentCmd, (MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN), "%d", nresult) < 0) {
return -1;
}
(void)sprintf_s(pclinereturn->alignmentCmd, (MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN),
"%d", nresult) < 0);
rlen = strlen(pclinereturn->alignmentCmd) + 1;
pclinereturn->len = htons(rlen);
HiLog::Info(DistributedAgent::LABEL, "agent get message :%s .\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册