Skip to content

Commit 3cd8eae

Browse files
authored
Merge pull request #6690 from cgohlke/patch-1
2 parents 10aa3bd + 6788e8f commit 3cd8eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_imagingft.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ font_setvaraxes(FontObject *self, PyObject *args) {
11791179
}
11801180

11811181
num_coords = PyObject_Length(axes);
1182-
coords = malloc(2 * sizeof(coords));
1182+
coords = (FT_Fixed*)malloc(num_coords * sizeof(FT_Fixed));
11831183
if (coords == NULL) {
11841184
return PyErr_NoMemory();
11851185
}

0 commit comments

Comments
 (0)