src/exdeath.cc: be a little bit smarter with the buffer

main
Kiyoshi Aman 2020-07-07 06:00:26 -06:00
parent 9cf969140e
commit 176f8c8470
1 changed files with 1 additions and 1 deletions

View File

@ -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<char *>(malloc(65536));
char temp[65536];
data->read(temp, 3);
if (!strncmp(temp, "EOF", 3)) {