mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #6690 from cgohlke/patch-1
This commit is contained in:
commit
3cd8eaeddb
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user