diff --git a/src/uifc/filepick.c b/src/uifc/filepick.c
index d2f22ae0d591a892d3c1f243da5156b5b2f7c02e..a5e695224fb993451a1a2b78826496400852aca7 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, GLOB_MARK, NULL, &dgl)!=0) {
+		if(glob(dglob, 0, NULL, &dgl)!=0) {
 			if(lastpath==NULL) {
 				fp->files=0;
 				retval=-1;