diff options
Diffstat (limited to 'virtio_loopback.c')
-rw-r--r-- | virtio_loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtio_loopback.c b/virtio_loopback.c index 1e40136..0eaac50 100644 --- a/virtio_loopback.c +++ b/virtio_loopback.c @@ -1415,7 +1415,7 @@ uint32_t virtio_config_readw(VirtIODevice *vdev, uint32_t addr) k->get_config(vdev, vdev->config); - memcpy(&val, (uint16_t *)(vdev->config + addr), sizeof(uint64_t)); + memcpy(&val, (uint16_t *)(vdev->config + addr), sizeof(uint16_t)); return val; } |