Revision 314b1811
b/hw/scsi-disk.c | ||
---|---|---|
460 | 460 |
memcpy(&outbuf[16], "QEMU HARDDISK ", 16); |
461 | 461 |
} |
462 | 462 |
memcpy(&outbuf[8], "QEMU ", 8); |
463 |
memcpy(&outbuf[32], s->version ? s->version : QEMU_VERSION, 4); |
|
463 |
memset(&outbuf[32], 0, 4); |
|
464 |
memcpy(&outbuf[32], s->version ? s->version : QEMU_VERSION, |
|
465 |
MIN(4, strlen(s->version ? s->version : QEMU_VERSION))); |
|
464 | 466 |
/* |
465 | 467 |
* We claim conformance to SPC-3, which is required for guests |
466 | 468 |
* to ask for modern features like READ CAPACITY(16) or the |
Also available in: Unified diff