Author: matt
Date: 2007-10-07 03:12:32 -0700 (Sun, 07 Oct 2007)
New Revision: 5948
Log:
STR #1761: fixed fl_filename_isdir for '/'-path in Unix
Modified:
branches/branch-1.1/CHANGES
branches/branch-1.1/src/filename_isdir.cxx
Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2007-10-07 10:04:01 UTC (rev 5947)
+++ branches/branch-1.1/CHANGES 2007-10-07 10:12:32 UTC (rev 5948)
@@ -3,6 +3,7 @@
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793)
+ - Fixed fl_filename_isdir for "/"-path (STR #1761)
- Fixed Fl_Chart drawing (STR #1756)
- Fixed mapping of subwindows with unmapped parent
windows (STR #1706)
Modified: branches/branch-1.1/src/filename_isdir.cxx
===================================================================
--- branches/branch-1.1/src/filename_isdir.cxx 2007-10-07 10:04:01 UTC (rev
5947)
+++ branches/branch-1.1/src/filename_isdir.cxx 2007-10-07 10:12:32 UTC (rev
5948)
@@ -75,7 +75,7 @@
// Matt: Just in case, we strip the slash for other operating
// systems as well, avoid bugs by sloppy implementations
// of "stat".
- if (length > 0 && isdirsep(n[length - 1])) {
+ if (length > 1 && isdirsep(n[length - 1])) {
length --;
memcpy(fn, n, length);
fn[length] = '\0';
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit