Commit 34395b48 authored by Adrian Castravete's avatar Adrian Castravete

Fix trying to go upper than the / (root) directory

parent 9a450045
......@@ -1681,6 +1681,7 @@ char *select_file(string title, char *path,enum LOAD_FILE_TYPES kind) {
read=1; // and redisplay all the files
break;
case 2: // upper directory
read=1;
delete_filelist(filelist); // frees the memory
longitud=strlen(path);
if(longitud<2) // there's no upper directory
......@@ -1697,7 +1698,6 @@ char *select_file(string title, char *path,enum LOAD_FILE_TYPES kind) {
longitud--;
path[longitud]=0; // delete the final '/'
}
read=1;
break;
default:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment