fix invalid read

This commit is contained in:
Yihao Deng 2024-01-11 09:41:02 +00:00
parent b0f6709474
commit d3cfa97740
1 changed files with 1 additions and 1 deletions

View File

@ -1910,7 +1910,7 @@ static void* cliWorkThread(void* arg) {
char threadName[TSDB_LABEL_LEN] = {0};
STrans* pInst = pThrd->pTransInst;
strntolower(threadName, pInst->label, sizeof(threadName));
strtolower(threadName, pInst->label);
setThreadName(threadName);
uv_run(pThrd->loop, UV_RUN_DEFAULT);