mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04:00
Fix os_apppath function, closing #185
This commit is contained in:
parent
39fa2f3ce9
commit
8c0561f144
@ -487,7 +487,7 @@ char *os_apppath(char *parm) {
|
|||||||
|
|
||||||
realpath(parm,path);
|
realpath(parm,path);
|
||||||
if(strrchr(path,'/')) {
|
if(strrchr(path,'/')) {
|
||||||
*strrchr(path,'/') = '/0';
|
*strrchr(path,'/') = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return strdup(path);
|
return strdup(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user