diff options
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; |