STR 2348: fixed possibly wrong relative path

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-10-30 19:46:05 +00:00
parent e923015b01
commit 6017a6fae6
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
CHANGES IN FLTK 1.3.0
- Fixed wrong relative path (STR #2384)
- Fixed static allocation in Fl_Tabs (STR #2370)
- Fixed Fl_Widget::measure_label() to const (STR #2406)
- Added step by step README's for MSWindows, OS X, and four

View File

@ -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 --;