summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/utimes.c')
-rw-r--r--otherlibs/unix/utimes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/utimes.c b/otherlibs/unix/utimes.c
index bb84c43e5..0c3b77d1b 100644
--- a/otherlibs/unix/utimes.c
+++ b/otherlibs/unix/utimes.c
@@ -38,7 +38,7 @@ CAMLprim value unix_utimes(value path, value atime, value mtime)
t = ×
else
t = (struct utimbuf *) NULL;
- p = caml_stat_alloc_string(path);
+ p = caml_strdup(String_val(path));
caml_enter_blocking_section();
ret = utime(p, t);
caml_leave_blocking_section();
@@ -70,7 +70,7 @@ CAMLprim value unix_utimes(value path, value atime, value mtime)
t = tv;
else
t = (struct timeval *) NULL;
- p = caml_stat_alloc_string(path);
+ p = caml_strdup(String_val(path));
caml_enter_blocking_section();
ret = utimes(p, t);
caml_leave_blocking_section();