From 73f2ee5484d4b1836cd94becd65af2342b2cdaca Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Sun, 10 Mar 2019 19:16:17 -0400 Subject: system_version: Correct sizes on VectorVfsFile construction --- src/core/file_sys/system_archive/system_version.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/file_sys/system_archive/system_version.cpp b/src/core/file_sys/system_archive/system_version.cpp index 3fc5f9586..52df10f55 100644 --- a/src/core/file_sys/system_archive/system_version.cpp +++ b/src/core/file_sys/system_archive/system_version.cpp @@ -34,13 +34,13 @@ VirtualDir SystemVersion() { file->WriteObject(SystemVersionData::REVISION_MAJOR, 4); file->WriteObject(SystemVersionData::REVISION_MINOR, 5); file->WriteArray(SystemVersionData::PLATFORM_STRING, - std::min(sizeof(SystemVersionData::PLATFORM_STRING), 0x20ull), 0x8); + std::min(sizeof(SystemVersionData::PLATFORM_STRING), 0x20ull), 0x8); file->WriteArray(SystemVersionData::VERSION_HASH, - std::min(sizeof(SystemVersionData::VERSION_HASH), 0x40ull), 0x28); + std::min(sizeof(SystemVersionData::VERSION_HASH), 0x40ull), 0x28); file->WriteArray(SystemVersionData::DISPLAY_VERSION, - std::min(sizeof(SystemVersionData::DISPLAY_VERSION), 0x18ull), 0x68); + std::min(sizeof(SystemVersionData::DISPLAY_VERSION), 0x18ull), 0x68); file->WriteArray(SystemVersionData::DISPLAY_TITLE, - std::min(sizeof(SystemVersionData::DISPLAY_TITLE), 0x80ull), 0x80); + std::min(sizeof(SystemVersionData::DISPLAY_TITLE), 0x80ull), 0x80); return std::make_shared(std::vector{file}, std::vector{}, "data"); } -- cgit v1.2.3