use len of context buffer
This commit is contained in:
parent
9a68dc53bf
commit
fc2e62a18c
|
@ -2032,7 +2032,7 @@ static EDealRes getDBNameFromConditionWalker(SNode* pNode, void* pContext) {
|
||||||
|
|
||||||
SValueNode* node = (SValueNode*)pNode;
|
SValueNode* node = (SValueNode*)pNode;
|
||||||
char* dbName = nodesGetValueFromNode(node);
|
char* dbName = nodesGetValueFromNode(node);
|
||||||
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName) + 1);
|
tstrncpy((char*)pContext, varDataVal(dbName), TSDB_DB_NAME_LEN);
|
||||||
return DEAL_RES_END; // stop walk
|
return DEAL_RES_END; // stop walk
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue