From 94eea62a5cdafaff136e9b6354ba1af1e88a1fd4 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Sat, 27 Aug 2022 16:09:53 -0400 Subject: [PATCH] Fix major ISO9660 ISOFileRead bug and typo caused by hasty reformatting. --- src/Kernel/BlkDev/FileSysISO.ZC | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Kernel/BlkDev/FileSysISO.ZC b/src/Kernel/BlkDev/FileSysISO.ZC index c69b0cbd..ba0996f5 100755 --- a/src/Kernel/BlkDev/FileSysISO.ZC +++ b/src/Kernel/BlkDev/FileSysISO.ZC @@ -176,7 +176,8 @@ U8 *ISOFileRead(CDrive *drive, U8 *cur_dir, U8 *filename, I64 *_size, I64 *_attr buf = MAlloc(blk_cnt << BLK_SIZE_BITS + 1); c = de.clus; c = ClusBlkRead(drive, buf, c, blk_cnt); - buf[de.size] = 0; //Terminate *_size = de.size; + buf[de.size] = 0; //Terminate + *_size = de.size; *_attr = FileAttr(de.name, de.attr); } DriveUnlock(drive);