Fix merge errors.

This commit is contained in:
xiao-77 2024-12-16 13:44:58 +08:00
parent c4ed102c11
commit b4afa6ff90
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {