summaryrefslogtreecommitdiffstats
path: root/netem/paretonormal.c
diff options
context:
space:
mode:
authorshemminger <shemminger>2005-08-08 20:24:41 +0000
committershemminger <shemminger>2005-08-08 20:24:41 +0000
commit6864c1e7890c65dd2ee037809f772790b04792b4 (patch)
tree257f42e3666c4022a74d030b6465f24593b50e2f /netem/paretonormal.c
parent3fcdebb6d0b6f7cafb0a21e5e892d3670326dc9a (diff)
Update to latest kernel headers.ss-050808
Fix out of range on paretonormal
Diffstat (limited to 'netem/paretonormal.c')
-rw-r--r--netem/paretonormal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netem/paretonormal.c b/netem/paretonormal.c
index 528de78c..ed75f288 100644
--- a/netem/paretonormal.c
+++ b/netem/paretonormal.c
@@ -51,7 +51,7 @@ main(int argc, char **argv)
{
int i,n;
double x;
- double table[TABLESIZE];
+ double table[TABLESIZE+1];
for (x = -10.0; x < 10.05; x += .00005) {
i = rint(TABLESIZE*normal(x, 0.0, 1.0));