summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c
index 2470f30b5..61320565b 100644
--- a/gtk/gtk_gui.c
+++ b/gtk/gtk_gui.c
@@ -990,7 +990,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);