]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/cloudlibc/src/libc/unistd/readlinkat.c
Update to the next version of the `witx` crate (#234)
[wasi-libc.git] / libc-bottom-half / cloudlibc / src / libc / unistd / readlinkat.c
index 3732620e05a84f0ae764a3821b912953e4ecbcb0..e08afb9b3c35b9872c7e95b92e67dc72b65ef605 100644 (file)
@@ -13,7 +13,7 @@ ssize_t __wasilibc_nocwd_readlinkat(int fd, const char *restrict path, char *res
                                     size_t bufsize) {
   size_t bufused;
   // TODO: Remove the cast on `buf` once the witx is updated with char8 support.
-  __wasi_errno_t error = __wasi_path_readlink(fd, path, strlen(path),
+  __wasi_errno_t error = __wasi_path_readlink(fd, path,
                                                       (uint8_t*)buf, bufsize, &bufused);
   if (error != 0) {
     errno = errno_fixup_directory(fd, error);