From 064cef2a7fe1dc06674e584a86cd4b96f2f53f34 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 10 Jan 2007 10:47:08 +0000 Subject: [PATCH] Silence a warning Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2745 --- src/dos/drive_iso.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dos/drive_iso.cpp b/src/dos/drive_iso.cpp index 5cc31b84..710764e4 100644 --- a/src/dos/drive_iso.cpp +++ b/src/dos/drive_iso.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: drive_iso.cpp,v 1.15 2007-01-08 19:45:39 qbix79 Exp $ */ +/* $Id: drive_iso.cpp,v 1.16 2007-01-10 10:47:08 qbix79 Exp $ */ #include #include @@ -474,8 +474,8 @@ inline bool isoDrive :: readSector(Bit8u *buffer, Bit32u sector) int isoDrive :: readDirEntry(isoDirEntry *de, Bit8u *data) { // copy data into isoDirEntry struct, data[0] = length of DirEntry - if (data[0] > sizeof(isoDirEntry)) return -1; - memcpy(de, data, data[0]); +// if (data[0] > sizeof(isoDirEntry)) return -1;//check disabled as isoDirentry is currently 258 bytes large. So it always fits + memcpy(de, data, data[0]);//Perharps care about a zero at the end. // xa not supported if (de->extAttrLength != 0) return -1;