diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-10-07 10:12:32 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-10-07 10:12:32 +0000 |
| commit | c6e6092657a0931b17d4b93d284f3fd20296b759 (patch) | |
| tree | 8711a2dc567f303c956d2d030c23e88dfc93ac30 /src | |
| parent | c1d5dc3b1978b439bf5d69bcea2385cc836b2ab4 (diff) | |
STR #1761: fixed fl_filename_isdir for '/'-path in Unix
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/filename_isdir.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filename_isdir.cxx b/src/filename_isdir.cxx index 5d58911d8..a8751673d 100644 --- a/src/filename_isdir.cxx +++ b/src/filename_isdir.cxx @@ -75,7 +75,7 @@ int fl_filename_isdir(const char* n) { // 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'; |
