From 46b98dab708d3cfada8541785a1d5c1b7968fe96 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 15 Jul 2019 17:12:31 -0400 Subject: [PATCH] Bumps up the amount of reserved storage. To avoid a reallocation when reading Mac data. --- Storage/Disk/Encodings/AppleGCR/SegmentParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/Disk/Encodings/AppleGCR/SegmentParser.cpp b/Storage/Disk/Encodings/AppleGCR/SegmentParser.cpp index 1bd7e7947..8f406bb9c 100644 --- a/Storage/Disk/Encodings/AppleGCR/SegmentParser.cpp +++ b/Storage/Disk/Encodings/AppleGCR/SegmentParser.cpp @@ -83,7 +83,7 @@ std::map Storage::Encodings::AppleGCR::sectors_from_segment // one header has been witnessed, start a sector. if(scanner[2] == data_prologue[2]) { new_sector.reset(new Sector); - new_sector->data.reserve(412); + new_sector->data.reserve(710); } else { sector_location = static_cast(bit % segment.data.size()); }