summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/access.c')
-rw-r--r--otherlibs/unix/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/access.c b/otherlibs/unix/access.c
index 9af8a6f95..7df4f9c5f 100644
--- a/otherlibs/unix/access.c
+++ b/otherlibs/unix/access.c
@@ -47,7 +47,7 @@ CAMLprim value unix_access(value path, value perms)
int ret, cv_flags;
cv_flags = convert_flag_list(perms, access_permission_table);
- p = caml_stat_alloc_string(path);
+ p = caml_strdup(String_val(path));
caml_enter_blocking_section();
ret = access(p, cv_flags);
caml_leave_blocking_section();