From 8a456fc0736bb97bc0927fc01ca975f1ee9c4874 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 7 Jun 2005 23:26:35 +0000 Subject: [PATCH] Use GLOB_MARK to add trailing / to directories in dir list. --- src/uifc/filepick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uifc/filepick.c b/src/uifc/filepick.c index a5e695224f..d2f22ae0d5 100644 --- a/src/uifc/filepick.c +++ b/src/uifc/filepick.c @@ -366,7 +366,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char #else //#error Need to do something about root paths (in get_file_opt_list() too!) #endif - if(glob(dglob, 0, NULL, &dgl)!=0) { + if(glob(dglob, GLOB_MARK, NULL, &dgl)!=0) { if(lastpath==NULL) { fp->files=0; retval=-1; -- GitLab