From: net[shemminger]!shemminger Date: Mon, 17 Jan 2005 23:32:11 +0000 (+0000) Subject: Import patch iproute2.121 X-Git-Tag: v2_6_10-050124~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5c62a9019dcbd6918768ad2c5b6ceee1bceebd;p=thirdparty%2Fiproute2.git Import patch iproute2.121 (Logical change 1.123) --- diff --git a/tc/normal.c b/tc/normal.c index 6ec2600a5..e6683db89 100644 --- a/tc/normal.c +++ b/tc/normal.c @@ -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; diff --git a/tc/paretonormal.c b/tc/paretonormal.c index b5ce91523..c793df6d5 100644 --- a/tc/paretonormal.c +++ b/tc/paretonormal.c @@ -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);