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);
|
||||
if(strrchr(path,'/')) {
|
||||
*strrchr(path,'/') = '/0';
|
||||
*strrchr(path,'/') = '\0';
|
||||
}
|
||||
|
||||
return strdup(path);
|
||||
|
|
Loading…
Reference in New Issue