summaryrefslogtreecommitdiff
path: root/xserver/mi/miinitext.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/mi/miinitext.c')
-rw-r--r--xserver/mi/miinitext.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xserver/mi/miinitext.c b/xserver/mi/miinitext.c
index 5872bf534..5fc44e3f4 100644
--- a/xserver/mi/miinitext.c
+++ b/xserver/mi/miinitext.c
@@ -108,6 +108,9 @@ SOFTWARE.
#include "misc.h"
#include "extension.h"
#include "extinit.h"
+#ifdef INXQUARTZ
+#include "nonsdk_extinit.h"
+#endif
#include "micmap.h"
#include "globals.h"
@@ -349,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;