summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 0c04d69a5..5d6ef5f15 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -2490,7 +2490,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);