Merge pull request #26430 from taosdata/fix/fixCompileError
fix compile error
This commit is contained in:
commit
80d388fa25
|
@ -4226,7 +4226,7 @@ int32_t dbChkpDumpTo(SDbChkp* p, char* dname, SArray* list) {
|
|||
static char* chkpMeta = "META";
|
||||
memset(dstBuf, 0, len);
|
||||
sprintf(dstBuf, "%s%s%s", dstDir, TD_DIRSEP, chkpMeta);
|
||||
tstrncpy(dstDir, dstBuf, strlen(dstBuf) + 1);
|
||||
memcpy(dstDir, dstBuf, strlen(dstBuf));
|
||||
|
||||
TdFilePtr pFile = taosOpenFile(dstDir, TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_TRUNC);
|
||||
if (pFile == NULL) {
|
||||
|
|
Loading…
Reference in New Issue