mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Fix os_apppath function, closing #185
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user