fix app name on windows

This commit is contained in:
factosea 2024-02-04 18:12:04 +08:00
parent 75603934a1
commit b05141d398
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ int32_t taosGetAppName(char* name, int32_t* len) {
char* end = strrchr(filepath, TD_DIRSEP[0]);
if (end == NULL) {
end = filepath;
} else {
end += 1;
}
tstrncpy(name, end, TSDB_APP_NAME_LEN);