Skip to content

Commit

Permalink
Fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Nov 13, 2024
1 parent c37c1a5 commit 5321d7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/imgarchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct EntryInfo
// archive data
uint32_t Offset = 0; // in sectors (each sector is 2048 bytes)
uint32_t Sector = 0; // in sectors (each sector is 2048 bytes)
wchar_t FileName[32]; // file name in the archive
wchar_t FileName[24]; // file name in the archive

// editor data
std::wstring Type = L"Unknown";
Expand Down
2 changes: 1 addition & 1 deletion src/parser/pc_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void ParserPCv1::Open(IMGArchive* pArc)
stream.read(reinterpret_cast<char*>(&entry.Offset), sizeof(entry.Offset));
stream.read(reinterpret_cast<char*>(&entry.Sector), sizeof(entry.Sector));

std::vector<char> buffer(32);
std::vector<char> buffer(24);
stream.read(buffer.data(), buffer.size());
Utils::ConvertUtf8ToWide(buffer.data(), entry.FileName, buffer.size());

Expand Down

0 comments on commit 5321d7e

Please sign in to comment.