diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-01-22 11:18:30 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-01-22 11:18:30 +0000 |
| commit | 930d62b9f67158804f27f8ebf69637c1172272c1 (patch) | |
| tree | b1ecbfba6f8f95f1e22060617ef66b362ad74d72 | |
| parent | e4586d1572fe52fa16f5a6538f215e7d45c898af (diff) | |
Fixed comment on trailing slashes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/filename_isdir.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filename_isdir.cxx b/src/filename_isdir.cxx index b917613d9..4e21d8603 100644 --- a/src/filename_isdir.cxx +++ b/src/filename_isdir.cxx @@ -72,9 +72,9 @@ int fl_filename_isdir(const char* n) { } } #else - // Matt: Actually, we found out that a trailling slash may also throw off - // some Unix implementations of stat, so cutting slashes is a must on every - // platform (thanks for that test, Greg) + // 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])) { length --; memcpy(fn, n, length); |
