diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-03 19:09:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-03 19:31:14 -0700 |
commit | f54470dab5b392380df61a22b4b4bef685b6cee2 (patch) | |
tree | 561d2a367f295f3fe53f72712b3b3f3d1011ec18 /src/FreeType/ftfuncs.c | |
parent | 27207d35d4b4bbd5d2b2c5f7e13a61ea43d04a4a (diff) |
Convert multiplying realloc calls to use reallocarray instead
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/FreeType/ftfuncs.c')
-rw-r--r-- | src/FreeType/ftfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FreeType/ftfuncs.c b/src/FreeType/ftfuncs.c index bc41bdf..f86d8dd 100644 --- a/src/FreeType/ftfuncs.c +++ b/src/FreeType/ftfuncs.c @@ -2124,7 +2124,7 @@ restrict_code_range_by_str(int count,unsigned short *refFirstCol, #endif nRanges++; oldRanges = ranges; - ranges = realloc(ranges, nRanges*sizeof(*ranges)); + ranges = reallocarray(ranges, nRanges, sizeof(*ranges)); if (NULL == ranges) { free(oldRanges); break; |