From 176f8c8470f80903c4fb710486ac1216201ab921 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Tue, 7 Jul 2020 06:00:26 -0600 Subject: [PATCH] src/exdeath.cc: be a little bit smarter with the buffer --- src/exdeath.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exdeath.cc b/src/exdeath.cc index c2ed215..4b05a62 100644 --- a/src/exdeath.cc +++ b/src/exdeath.cc @@ -153,7 +153,7 @@ void Exdeath::applyPatch(QFile *file, QString patch) { while (!data->atEnd()) { unsigned int seek = 0; unsigned short length = 0; - char *temp = reinterpret_cast(malloc(65536)); + char temp[65536]; data->read(temp, 3); if (!strncmp(temp, "EOF", 3)) {