Commit d4bb08f8 authored by John van Groningen's avatar John van Groningen
Browse files

use / instead of \ in paths

parent b2895908
...@@ -80,7 +80,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i ...@@ -80,7 +80,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i
path_p[i]=fname_p[i]; path_p[i]=fname_p[i];
++i; ++i;
} }
path_p[i]='\\'; path_p[i]='/';
path_p+=last_dot_i+1; path_p+=last_dot_i+1;
fname_p+=last_dot_i+1; fname_p+=last_dot_i+1;
...@@ -102,7 +102,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i ...@@ -102,7 +102,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i
i=0; i=0;
while (c=fname_p[i], c!='\0'){ while (c=fname_p[i], c!='\0'){
path_p[i] = c=='.' ? '\\' : c; path_p[i] = c=='.' ? '/' : c;
++i; ++i;
} }
path_p+=i; path_p+=i;
...@@ -158,7 +158,7 @@ static Bool findfilepath (char *fname,FileKind kind,char *mode,char *path) ...@@ -158,7 +158,7 @@ static Bool findfilepath (char *fname,FileKind kind,char *mode,char *path)
*dest_p++ = *from_p++; *dest_p++ = *from_p++;
*dest_p = '\0'; *dest_p = '\0';
*dest_p++ = '\\'; *dest_p++ = '/';
append_file_name_and_ext (dest_p,fname,ext,in_clean_system_files_folder); append_file_name_and_ext (dest_p,fname,ext,in_clean_system_files_folder);
if (file_exists (path)) if (file_exists (path))
return True; return True;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment