Skip to content

Commit

Permalink
Don't change byte order of magic number.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Sep 24, 2018
1 parent d83ec04 commit 2a57a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/i3s/io/SlpkExtractor.cpp
Expand Up @@ -70,7 +70,7 @@ void SlpkExtractor::extract() const
std::vector<char> extra;
int32_t magic;

in >> magic;
in.get(reinterpret_cast<char *>(&magic), sizeof(magic));
while (magic == 0x04034b50)
{
in >> h.m_version;
Expand All @@ -96,7 +96,7 @@ void SlpkExtractor::extract() const
throw slpk_error("Compressed and uncompressed sizes don't match "
"in slpk archive.");
writeFile(name, in, h.m_compressedSize);
in >> magic;
in.get(reinterpret_cast<char *>(&magic), sizeof(magic));
}
}

Expand Down

0 comments on commit 2a57a3e

Please sign in to comment.