From 94eaa918fc76dc3e2a472e1530706d5dd8d1ac5c Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 10 Feb 2024 07:38:40 -0500 Subject: formats/fs_fat.cpp: Various fixes - Get the volume label from the root directory, rather than from the extended BPB (which is less reliable) - Ignore long file name entries for now * floptool: Add new line to error message report --- src/lib/formats/fsblk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/formats/fsblk.cpp') diff --git a/src/lib/formats/fsblk.cpp b/src/lib/formats/fsblk.cpp index d766e389bee..0201ca29092 100644 --- a/src/lib/formats/fsblk.cpp +++ b/src/lib/formats/fsblk.cpp @@ -63,7 +63,7 @@ u8 *fsblk_t::iblock_t::offset(const char *function, u32 off, u32 size) const u8 *fsblk_t::iblock_t::rooffset(const char *function, u32 off, u32 size) { if(off + size > m_size) - throw std::out_of_range(util::string_format("block_t::%s out-of-block read access, offset=%d, size=%d, block size=%d\n", function, off, size, m_size)); + throw std::out_of_range(util::string_format("block_t::%s out-of-block read access, offset=%d, size=%d, block size=%d", function, off, size, m_size)); return rodata() + off; } -- cgit v1.2.3-70-g09d2