diff options
Diffstat (limited to 'framebuffer/misc.c')
-rw-r--r-- | framebuffer/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framebuffer/misc.c b/framebuffer/misc.c index 143ea8cf9..6f9f3878d 100644 --- a/framebuffer/misc.c +++ b/framebuffer/misc.c @@ -71,7 +71,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); |