fix app name on windows
This commit is contained in:
parent
75603934a1
commit
b05141d398
|
@ -56,6 +56,8 @@ int32_t taosGetAppName(char* name, int32_t* len) {
|
||||||
char* end = strrchr(filepath, TD_DIRSEP[0]);
|
char* end = strrchr(filepath, TD_DIRSEP[0]);
|
||||||
if (end == NULL) {
|
if (end == NULL) {
|
||||||
end = filepath;
|
end = filepath;
|
||||||
|
} else {
|
||||||
|
end += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
tstrncpy(name, end, TSDB_APP_NAME_LEN);
|
tstrncpy(name, end, TSDB_APP_NAME_LEN);
|
||||||
|
|
Loading…
Reference in New Issue