fix: build on windows

This commit is contained in:
xsren 2024-09-27 18:21:01 +08:00
parent 54ea1466fc
commit 7198202611
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ void killAllCheckpointTrans(SMnode *pMnode, SVgroupChangeInfo *pChangeInfo) {
size_t len = 0;
void *pKey = taosHashGetKey(pDb, &len);
int cpLen = MIN(127, len);
int cpLen = (127 < len) ? 127 : len;
TAOS_STRNCPY(p, pKey, cpLen);
p[cpLen] = '\0';