diff options
Diffstat (limited to 'otherlibs/unix/chown.c')
-rw-r--r-- | otherlibs/unix/chown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/chown.c b/otherlibs/unix/chown.c index f018e9e0a7..4b53a2c02e 100644 --- a/otherlibs/unix/chown.c +++ b/otherlibs/unix/chown.c @@ -24,7 +24,7 @@ CAMLprim value unix_chown(value path, value uid, value gid) char * p; int ret; caml_unix_check_path(path, "chown"); - p = caml_strdup(String_val(path)); + p = caml_stat_strdup(String_val(path)); caml_enter_blocking_section(); ret = chown(p, Int_val(uid), Int_val(gid)); caml_leave_blocking_section(); |