Fix the typo in #9267

This commit is contained in:
xtemp09
2023-04-15 15:41:33 +07:00
parent ec4a963f57
commit 8f517ec5c7

View File

@@ -142,7 +142,7 @@ PyObject* FT2FC(const Py_UNICODE *PyUString,
int bytesNeeded = fontfile.tellg();
fontfile.clear();
fontfile.seekg (0, fontfile.beg);
auto buffer = std::unique_ptr <char> (new char[bytesNeeded]);
std::unique_ptr <char[]> buffer (new char[bytesNeeded]);
fontfile.read(buffer.get(), bytesNeeded);
if (!fontfile) {
//get indignant