summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
Diffstat (limited to 'beos')
-rw-r--r--beos/beos_gui.cpp2
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);