summaryrefslogtreecommitdiffstats
path: root/ftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftw.c')
-rw-r--r--ftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftw.c b/ftw.c
index 4e78e801..074952e1 100644
--- a/ftw.c
+++ b/ftw.c
@@ -111,7 +111,7 @@ val ftw_wrap(val dirpath, val fn, val flags_in, val nopenfd_in)
} else {
int nopenfd = c_num(default_arg(nopenfd_in, num_fast(20)), self);
int flags = c_num(default_arg(flags_in, zero), self);
- char *dirpath_u8 = utf8_dup_to(c_str(dirpath));
+ char *dirpath_u8 = utf8_dup_to(c_str(dirpath, self));
int res = (s_callback = fn,
nftw(dirpath_u8, ftw_callback, nopenfd, flags));
s_callback = nil;