summaryrefslogtreecommitdiffstats
path: root/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'glob.c')
-rw-r--r--glob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glob.c b/glob.c
index 4044f675..a42d5722 100644
--- a/glob.c
+++ b/glob.c
@@ -79,7 +79,7 @@ val glob_wrap(val pattern, val flags, val errfun)
c_flags &= ~GLOB_APPEND;
if (stringp(pattern)) {
- char *pat_u8 = utf8_dup_to(c_str(pattern));
+ char *pat_u8 = utf8_dup_to(c_str(pattern, self));
(void) glob(pat_u8, c_flags, s_errfunc ? errfunc_thunk : 0, &gl);
free(pat_u8);
} else {
@@ -88,7 +88,7 @@ val glob_wrap(val pattern, val flags, val errfun)
seq_iter_init(self, &iter, pattern);
while (seq_get(&iter, &elem)) {
- char *pat_u8 = utf8_dup_to(c_str(elem));
+ char *pat_u8 = utf8_dup_to(c_str(elem, self));
(void) glob(pat_u8, c_flags, s_errfunc ? errfunc_thunk : 0, &gl);
if (s_exit_point)
break;