fix issue

This commit is contained in:
54liuyao 2024-10-25 17:21:28 +08:00
parent f5626d45bc
commit 417938d2b2
1 changed files with 1 additions and 2 deletions

View File

@ -2032,8 +2032,7 @@ static EDealRes getDBNameFromConditionWalker(SNode* pNode, void* pContext) {
SValueNode* node = (SValueNode*)pNode;
char* dbName = nodesGetValueFromNode(node);
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName));
*((char*)pContext + varDataLen(dbName)) = 0;
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName) + 1);
return DEAL_RES_END; // stop walk
}
default: