summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-07 16:13:05 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-07 16:13:05 +0300
commit04cec8bb69f5afc2883235aa8fd0a329671279be (patch)
tree460592f238722c609f9bdafe14fbd7fe6d890149 /src/gmutil.c
parent3042883598c9db1436a63788f40604ce41a0b801 (diff)
Windows: Fixed use of native path separators
`GmRequest` should use the correct path separators on Windows in native paths.
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index 2a4f4728..718a0a9a 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -439,6 +439,7 @@ iString *localFilePathFromUrl_String(const iString *d) {
439 if (startsWith_String(path, "/")) { 439 if (startsWith_String(path, "/")) {
440 remove_Block(&path->chars, 0, 1); 440 remove_Block(&path->chars, 0, 1);
441 } 441 }
442 replace_Block(&path->chars, '/', '\\');
442#endif 443#endif
443 return path; 444 return path;
444} 445}