Skip to content
Snippets Groups Projects
Commit 8a456fc0 authored by deuce's avatar deuce
Browse files

Use GLOB_MARK to add trailing / to directories in dir list.

parent d4143f85
No related branches found
No related tags found
No related merge requests found
...@@ -366,7 +366,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char ...@@ -366,7 +366,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
#else #else
//#error Need to do something about root paths (in get_file_opt_list() too!) //#error Need to do something about root paths (in get_file_opt_list() too!)
#endif #endif
if(glob(dglob, 0, NULL, &dgl)!=0) { if(glob(dglob, GLOB_MARK, NULL, &dgl)!=0) {
if(lastpath==NULL) { if(lastpath==NULL) {
fp->files=0; fp->files=0;
retval=-1; retval=-1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment