From ab5a4d0b385117d94fee7f132b20499b0c2297b9 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 14 Feb 2019 22:13:20 +0100 Subject: [PATCH] fix change to parent directory ".." was recognized as relative path :( issue introduced in 02f9d68f8e8aacd293baabe9fed407db50bb1297 --- src/filesel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesel.c b/src/filesel.c index 1c75e3f0..334c9496 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -2384,7 +2384,7 @@ byte Button_Load_or_Save(T_Selector_settings *settings, byte load, T_IO_Context if (directory_to_change_to[0] == '.' && (directory_to_change_to[1] == '\0' || directory_to_change_to[1] == '/' || directory_to_change_to[1] == '\\' || (directory_to_change_to[1] == '.' && - (directory_to_change_to[2] == '\0' || directory_to_change_to[2] == '/' || directory_to_change_to[2] == '\\')))) // Relative path + (directory_to_change_to[2] == '/' || directory_to_change_to[2] == '\\')))) // Relative path { GFX2_Log(GFX2_DEBUG, "Relative bookmark \"%s\", Change to \"%s\" first.\n", directory_to_change_to, Data_directory);