refactor a bit

This commit is contained in:
A-lex-Ra
2023-12-18 20:48:03 +06:00
parent 667a90b724
commit afedd103e8
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ char* files::read_bytes(path filename, size_t& length) {
length = input.tellg();
input.seekg(0, std::ios_base::beg);
unique_ptr<char> data {new char[length]};
unique_ptr<char> data(new char[length]);
input.read(data.get(), length);
input.close();
return data.release();