From: Toni Wilen Date: Tue, 31 Dec 2019 15:41:33 +0000 (+0200) Subject: Fix MDS CD image detection. X-Git-Tag: 4400~205 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=9ad1b2057c946e48d2a8b889390fb5ae353316a8;p=francis%2Fwinuae.git Fix MDS CD image detection. --- diff --git a/blkdev_cdimage.cpp b/blkdev_cdimage.cpp index eda952d8..80974327 100644 --- a/blkdev_cdimage.cpp +++ b/blkdev_cdimage.cpp @@ -1319,7 +1319,7 @@ static int parsemds (struct cdunit *cdu, struct zfile *zmds, const TCHAR *img, c goto end; head = (MDS_Header*)mds; - if (!memcmp (head->signature, MEDIA_DESCRIPTOR, strlen (MEDIA_DESCRIPTOR))) + if (!memcmp (head->signature, MEDIA_DESCRIPTOR, sizeof(MEDIA_DESCRIPTOR))) goto end; if (head->version[0] != 1) { write_log (_T("unsupported MDS version %d, only v.1 supported\n"), head->version[0]);