fix compile error

This commit is contained in:
yihaoDeng 2024-12-12 15:36:44 +08:00
parent 69a40355ed
commit c7f22d23df
1 changed files with 1 additions and 1 deletions

View File

@ -4825,7 +4825,7 @@ int32_t dbChkpGetDelta(SDbChkp* p, int64_t chkpId, SArray* list) {
return terrno;
}
tstrncpy(fname, name, strlen(name));
tstrncpy(fname, name, strlen(name) + 1);
if (taosArrayPush(p->pAdd, &fname) == NULL) {
taosMemoryFree(fname);
TAOS_UNUSED(taosThreadRwlockUnlock(&p->rwLock));