fix: coverity issues

CID: 399714
This commit is contained in:
Ganlin Zhao 2022-10-24 14:16:17 +08:00
parent 3db012b9a3
commit f1dc1d63f7
1 changed files with 1 additions and 1 deletions

View File

@ -5124,7 +5124,7 @@ int tDecodeSVCreateTbReq(SDecoder *pCoder, SVCreateTbReq *pReq) {
char name[TSDB_COL_NAME_LEN] = {0};
char *tmp = NULL;
if (tDecodeCStr(pCoder, &tmp) < 0) return -1;
strcpy(name, tmp);
strncpy(name, tmp, TSDB_COL_NAME_LEN - 1);
taosArrayPush(pReq->ctb.tagName, name);
}
} else if (pReq->type == TSDB_NORMAL_TABLE) {