未验证 提交 5ba794c3 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #17508 from taosdata/feature/TD-14761

fix:defects in coverity scan
......@@ -330,11 +330,11 @@ void parseArgument(int32_t argc, char *argv[]) {
printHelp();
exit(0);
} else if (strcmp(argv[i], "-d") == 0) {
strcpy(dbName, argv[++i]);
tstrncpy(dbName, argv[++i], sizeof(dbName));
} else if (strcmp(argv[i], "-c") == 0) {
strcpy(configDir, argv[++i]);
tstrncpy(configDir, argv[++i], PATH_MAX);
} else if (strcmp(argv[i], "-s") == 0) {
strcpy(stbName, argv[++i]);
tstrncpy(stbName, argv[++i], sizeof(stbName));
} else if (strcmp(argv[i], "-t") == 0) {
numOfThreads = atoi(argv[++i]);
} else if (strcmp(argv[i], "-n") == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册