This commit is contained in:
KinderRiven 2022-06-11 13:18:28 +08:00
parent 384cef7242
commit e505df5198

View File

@ -297,7 +297,7 @@ int copy_decompressor(const char *self, int output_fd)
return 1;
}
char buf[1ul<<19];
char *buf = new char[1ul<<19];
ssize_t n = 0;
do
{
@ -327,7 +327,7 @@ int copy_decompressor(const char *self, int output_fd)
} while (true);
close(input_fd);
delete []buf;
return 0;
}