From 552838c323639471784d73c8c658b73918d02813 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 13 Apr 2017 05:46:10 -0500 Subject: [PATCH] Adjust nost-pack image data buffer size --- src/tools/pack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/pack.cpp b/src/tools/pack.cpp index 04697976..f5130973 100644 --- a/src/tools/pack.cpp +++ b/src/tools/pack.cpp @@ -67,7 +67,7 @@ int run(ClArgs args) { if (!src.isNull()) { QMap colors; - const auto imgDataBuffSize = sizeof(Pallete) - 1 + src.width() * src.height(); + const auto imgDataBuffSize = sizeof(Pallete) + src.width() * src.height(); uint8_t imgDataBuff[imgDataBuffSize]; GbaImageData *id = (GbaImageData*) imgDataBuff; int colorId = 0;