From 9ad1b2057c946e48d2a8b889390fb5ae353316a8 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 31 Dec 2019 17:41:33 +0200 Subject: [PATCH] Fix MDS CD image detection. --- blkdev_cdimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.47.3