]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Import patch iproute2.121
authornet[shemminger]!shemminger <net[shemminger]!shemminger>
Mon, 17 Jan 2005 23:32:11 +0000 (23:32 +0000)
committernet[shemminger]!shemminger <net[shemminger]!shemminger>
Mon, 17 Jan 2005 23:32:11 +0000 (23:32 +0000)
(Logical change 1.123)

tc/normal.c
tc/paretonormal.c

index 6ec2600a59b5c78cb5961a46c729217bfd7ee31b..e6683db8946680910815b05ac8be96b80449e819 100644 (file)
@@ -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;
index b5ce91523d31d8d6bc20e80a69ee582a774e78eb..c793df6d5f4316f27f85db13b74ba42939531e83 100644 (file)
@@ -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);