Import patch iproute2.121

(Logical change 1.123)
parent 588bc7b7
......@@ -26,7 +26,7 @@ main(int argc, char **argv)
double x, *table;
int i, n;
table = calloc(sizeof(double), TABLESIZE);
table = calloc(sizeof(double), TABLESIZE+1);
if (!table) {
fprintf(stderr, "Not enough memory\n");
return 1;
......
......@@ -54,7 +54,7 @@ main(int argc, char **argv)
double *table;
int i,n;
table = calloc(TABLESIZE, sizeof(double));
table = calloc(TABLESIZE+1, sizeof(double));
if (!table) {
fprintf(stderr, "Out of memory!\n");
exit(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment