summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filename_absolute.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx
index 08da91ce5..123dc36a3 100644
--- a/src/filename_absolute.cxx
+++ b/src/filename_absolute.cxx
@@ -210,6 +210,7 @@ fl_filename_relative(char *to, // O - Relative filename
if (isdirsep(*slash)) slash ++;
// do the same for the current dir
+ if (isdirsep(*newslash)) newslash --;
if (*newslash != '\0')
while (!isdirsep(*newslash) && newslash > cwd) newslash --;