summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filename_absolute.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx
index eda86d94b..6ffc6df39 100644
--- a/src/filename_absolute.cxx
+++ b/src/filename_absolute.cxx
@@ -134,6 +134,9 @@ fl_filename_relative(char *to, // O - Relative filename
}
#if defined(WIN32) || defined(__EMX__)
+ for (slash = strchr(cwd, '\\'); slash; slash = strchr(slash + 1, '\\'))
+ *slash = '/';
+
if (!strcasecmp(from, cwd)) {
strlcpy(to, ".", tolen);
return (1);