diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-03-21 14:58:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-04-21 16:58:08 -0700 |
commit | 7ac280287491fe06127d9fefc504217e21c780e6 (patch) | |
tree | d86d2eb383f27378e6e6867fba3aa80290c7bd18 /mi/miinitext.c | |
parent | 70f4a0e6bd18055cc9cb6685253bf5e07b125657 (diff) |
Convert mi & miext to new *allocarray functions
v2: remove now useless parentheses
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'mi/miinitext.c')
-rw-r--r-- | mi/miinitext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index 086d2c3fb..5fc44e3f4 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -352,8 +352,8 @@ NewExtensionModuleList(int size) numExtensionModules = 0; n = numExtensionModules + size; - ExtensionModuleList = realloc(ExtensionModuleList, - n * sizeof(ExtensionModule)); + ExtensionModuleList = reallocarray(ExtensionModuleList, n, + sizeof(ExtensionModule)); if (ExtensionModuleList == NULL) { ExtensionModuleList = save; return NULL; |