diff options
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r-- | beos/beos_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp index 460ae1a87..80bb50eb7 100644 --- a/beos/beos_gui.cpp +++ b/beos/beos_gui.cpp @@ -1209,7 +1209,7 @@ char *filename_from_path(char *path) bool path_add_part(char *path, int length, char *newpart) { - if(path[strlen(path)] != '/') + if(path[strlen(path) - 1] != '/') strncat(path, "/", length); strncat(path, newpart, length); |