SHA256
1
0
forked from pool/gmp
gmp/gmp-6.1.2-conftest.patch

32 lines
898 B
Diff

--- acinclude.m4.orig 2017-01-04 11:40:34.672561902 +0100
+++ acinclude.m4 2017-01-04 11:40:42.324648573 +0100
@@ -741,7 +741,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)
{
--- configure.orig 2017-01-04 11:42:54.678147652 +0100
+++ configure 2017-01-04 11:46:36.468659624 +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)
{