]> git.proxmox.com Git - qemu.git/blobdiff - hw/virtio-net.c
iov: Update parameter usage in iov_(to|from)_buf()
[qemu.git] / hw / virtio-net.c
index 6997e02dcf083a4aef4c39572c5af242eedf3512..a32cc019b09b88664e90e9d91a22e8161ae391dd 100644 (file)
@@ -657,7 +657,7 @@ static ssize_t virtio_net_receive(VLANClientState *nc, const uint8_t *buf, size_
 
         /* copy in packet.  ugh */
         len = iov_from_buf(sg, elem.in_num,
-                           buf + offset, size - offset);
+                           buf + offset, 0, size - offset);
         total += len;
         offset += len;
         /* If buffers can't be merged, at this point we