diff options
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r-- | hw/scsi-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 3973c25800..88147b5df0 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -548,8 +548,8 @@ static int get_blocksize(BlockDriverState *bdrv) sg_io_hdr_t io_header; int ret; - memset(cmd, sizeof(cmd), 0); - memset(buf, sizeof(buf), 0); + memset(cmd, 0, sizeof(cmd)); + memset(buf, 0, sizeof(buf)); cmd[0] = READ_CAPACITY; memset(&io_header, 0, sizeof(io_header)); |