mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
realpath fixes
This commit is contained in:
parent
5917ca0cda
commit
a6675697be
@ -434,6 +434,9 @@ char *os_realpath(const char *pathname, char *resolved_path) {
|
|||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(strlen(resolved_path) && (resolved_path[strlen(resolved_path)-1] == '\\'))
|
||||||
|
resolved_path[strlen(resolved_path)-1] = '\0';
|
||||||
|
|
||||||
return &resolved_path[0];
|
return &resolved_path[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user