summaryrefslogtreecommitdiffstats
path: root/sys/compat/cloudabi/cloudabi_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/cloudabi/cloudabi_random.c')
-rw-r--r--sys/compat/cloudabi/cloudabi_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/cloudabi/cloudabi_random.c b/sys/compat/cloudabi/cloudabi_random.c
index 76a9360..02a3252 100644
--- a/sys/compat/cloudabi/cloudabi_random.c
+++ b/sys/compat/cloudabi/cloudabi_random.c
@@ -38,7 +38,7 @@ cloudabi_sys_random_get(struct thread *td,
{
struct iovec iov = {
.iov_base = uap->buf,
- .iov_len = uap->nbyte
+ .iov_len = uap->buf_len
};
struct uio uio = {
.uio_iov = &iov,
OpenPOWER on IntegriCloud