Merge pull request #6690 from cgohlke/patch-1

This commit is contained in:
Hugo van Kemenade 2022-10-27 14:09:58 +03:00 committed by GitHub
commit 3cd8eaeddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1179,7 +1179,7 @@ font_setvaraxes(FontObject *self, PyObject *args) {
}
num_coords = PyObject_Length(axes);
coords = malloc(2 * sizeof(coords));
coords = (FT_Fixed*)malloc(num_coords * sizeof(FT_Fixed));
if (coords == NULL) {
return PyErr_NoMemory();
}