enh(meta): use memory safe functions

This commit is contained in:
Minglei Jin 2024-12-10 11:15:41 +08:00
parent 1d58c23976
commit 92f41ef5c5
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ static int32_t metaOpenImpl(SVnode *pVnode, SMeta **ppMeta, const char *metaDir,
metaInitLock(pMeta);
pMeta->path = (char *)&pMeta[1];
strcpy(pMeta->path, path);
tstrncpy(pMeta->path, path, strlen(path) + 1);
int32_t ret = taosRealPath(pMeta->path, NULL, strlen(path) + 1);
pMeta->pVnode = pVnode;