fix compile error

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

View File

@ -4631,7 +4631,7 @@ int32_t compareHashTableImpl(SHashObj* p1, SHashObj* p2, SArray* diff) {
if (fname == NULL) {
return terrno;
}
tstrncpy(fname, name, strlen(name));
tstrncpy(fname, name, strlen(name) + 1);
if (taosArrayPush(diff, &fname) == NULL) {
taosMemoryFree(fname);
return terrno;