summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch
blob: 5770af6921249c0aa5cb6048dd7771ec50091e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- gmp-6.1.2.orig/configure	2016-12-16 16:45:32.000000000 +0100
+++ gmp-6.1.2/configure	2017-03-08 14:26:11.194245000 +0100
@@ -6776,7 +6776,7 @@
   long i;
   for (i = 0; i < 88 + 1; i++)
     a[i] = ~0L;
-  r = malloc (10000 * sizeof (unsigned long));
+  r = calloc (10000, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
     {
@@ -8394,7 +8394,7 @@
   long i;
   for (i = 0; i < 88 + 1; i++)
     a[i] = ~0L;
-  r = malloc (10000 * sizeof (unsigned long));
+  r = calloc (10000, sizeof (unsigned long));
   r2 = r;
   for (i = 0; i < 528; i += 23)
     {