From 680a4a5b03552660a33de1cc837ec6d97348cf17 Mon Sep 17 00:00:00 2001 From: penfold42 Date: Tue, 7 Aug 2018 19:46:27 +1000 Subject: [PATCH] dont try to insert ".." --- src/FileBrowser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FileBrowser.cpp b/src/FileBrowser.cpp index 7951537..15a5e96 100644 --- a/src/FileBrowser.cpp +++ b/src/FileBrowser.cpp @@ -875,7 +875,8 @@ bool FileBrowser::AddToCaddy(FileBrowser::BrowsableList::Entry* current) { return AddImageToCaddy(current); } - else if (current->filImage.fattrib & AM_DIR) + + else if ( (current->filImage.fattrib & AM_DIR) && ( strcmp(current->filImage.fname, "..") != 0) ) { bool ret = false; f_chdir(current->filImage.fname);