diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 19:46:05 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 19:46:05 +0000 |
| commit | 6017a6fae62090b58e466984d570263bb07114d1 (patch) | |
| tree | fa97095766d78b790968f3b1d2c8927655510766 /src | |
| parent | e923015b0139c3762ad514d703cf965664496660 (diff) | |
STR 2348: fixed possibly wrong relative path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/filename_absolute.cxx | 1 |
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 --; |
