Fixed comment on trailing slashes

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2007-01-22 11:18:30 +00:00
parent e4586d1572
commit 930d62b9f6
+3 -3
View File
@@ -72,9 +72,9 @@ int fl_filename_isdir(const char* n) {
} }
} }
#else #else
// Matt: Actually, we found out that a trailling slash may also throw off // Matt: Just in case, we strip the slash for other operating
// some Unix implementations of stat, so cutting slashes is a must on every // systems as well, avoid bugs by sloppy implementations
// platform (thanks for that test, Greg) // of "stat".
if (length > 0 && isdirsep(n[length - 1])) { if (length > 0 && isdirsep(n[length - 1])) {
length --; length --;
memcpy(fn, n, length); memcpy(fn, n, length);