Skip to content

Commit 601be6e

Browse files
authored
Merge pull request #18 from mdboom/alloc_warning
Fix allocation found with clang-analyser
2 parents ab59162 + 533d91d commit 601be6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simple_layout.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ FT_Error ftpy_calculate_simple_layout(
5757
goto exit;
5858
}
5959

60-
layout->xys = calloc(sizeof(FT_Vector), text_length);
60+
layout->xys = calloc(sizeof(ftpy_Layout_Vector), text_length);
6161
if (layout->xys == NULL) {
6262
goto exit;
6363
}

0 commit comments

Comments
 (0)