]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/cloudlibc/src/libc/stdio/renameat.c
Update to the next version of the `witx` crate (#234)
[wasi-libc.git] / libc-bottom-half / cloudlibc / src / libc / stdio / renameat.c
index 031a71fc334b3ff2da9c808ad3264e117eae1d5d..e43cef22c279d518df9858f1d7dd698ef282cdad 100644 (file)
@@ -10,8 +10,7 @@
 #include <string.h>
 
 int __wasilibc_nocwd_renameat(int oldfd, const char *old, int newfd, const char *new) {
-  __wasi_errno_t error = __wasi_path_rename(oldfd, old, strlen(old),
-                                            newfd, new, strlen(new));
+  __wasi_errno_t error = __wasi_path_rename(oldfd, old, newfd, new);
   if (error != 0) {
     errno = errno_fixup_directory(oldfd, errno_fixup_directory(newfd, error));
     return -1;