Skip to content
Snippets Groups Projects
Commit 15d66909 authored by rswindell's avatar rswindell
Browse files

Fixed Deuce's mod to backslash(): if path string ends in backslash on Unix,

over-write backslash with forwardslash (rather than just appending it, creating
and invalid path string).
parent abba1438
No related branches found
No related tags found
No related merge requests found
...@@ -821,7 +821,12 @@ char* DLLCALL backslash(char* path) ...@@ -821,7 +821,12 @@ char* DLLCALL backslash(char* path)
p=lastchar(path); p=lastchar(path);
if(!IS_PATH_DELIM(*p)) { if(!IS_PATH_DELIM(*p)) {
*(++p)=PATH_DELIM; #if defined(__unix__)
/* Convert trailing backslash to forwardslash on *nix */
if(*p!='\\')
p++;
#endif
*p=PATH_DELIM;
*(++p)=0; *(++p)=0;
} }
return(path); return(path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment