From b4afa6ff90097eb14ef182e9e73de1e84ee5f5a1 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Mon, 16 Dec 2024 13:44:58 +0800 Subject: [PATCH] Fix merge errors. --- source/dnode/mnode/impl/src/mndConfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/mnode/impl/src/mndConfig.c b/source/dnode/mnode/impl/src/mndConfig.c index f34b6bd583..3fa2bd2941 100644 --- a/source/dnode/mnode/impl/src/mndConfig.c +++ b/source/dnode/mnode/impl/src/mndConfig.c @@ -418,7 +418,7 @@ static int32_t mndMCfg2DCfg(SMCfgDnodeReq *pMCfgReq, SDCfgDnodeReq *pDCfgReq) { } size_t optLen = p - pMCfgReq->config; - tstrncpy(pDCfgReq->config, pMCfgReq->config, optLen); + tstrncpy(pDCfgReq->config, pMCfgReq->config, sizeof(pDCfgReq->config)); pDCfgReq->config[optLen] = 0; if (' ' == pMCfgReq->config[optLen]) {