Make some changes noticed while porting to C++

This commit is contained in:
Rangi42
2023-11-05 16:08:07 -05:00
committed by Eldred Habert
parent 6ac1dd8966
commit 02f9128d07
19 changed files with 72 additions and 61 deletions

View File

@@ -419,7 +419,7 @@ static void parseHEXFile(std::filebuf &file) {
static void parseACTFile(std::filebuf &file) {
// https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577411_pgfId-1070626
std::array<char, 772> buf;
std::array<char, 772> buf{};
auto len = file.sgetn(buf.data(), buf.size());
uint16_t nbColors = 256;