From 520e234d5a9905467bcbc8a0f2b55d3e0a49e51f Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 19:10:13 +0100 Subject: [PATCH] Fixed a bug in scsi/scsi_cdrom.c. --- src/scsi/scsi_cdrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scsi/scsi_cdrom.c b/src/scsi/scsi_cdrom.c index abfd8a6ef..3ea4bd169 100644 --- a/src/scsi/scsi_cdrom.c +++ b/src/scsi/scsi_cdrom.c @@ -1891,7 +1891,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb) } gesn_event_header->len = used_len - sizeof(*gesn_event_header); - memcpy(dev->buffer, gesn_event_header, 4); + memmove(dev->buffer, gesn_event_header, 4); scsi_cdrom_set_buf_len(dev, BufLen, &used_len);