Merge pull request #24734 from taosdata/fix/xsren/TD-28500/appName

fix app name on windows
This commit is contained in:
Haojun Liao 2024-02-05 09:14:41 +08:00 committed by GitHub
commit 6384c740c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);