diff --git a/kqueue.c b/kqueue.c index 949db4d2..3ce1e0b6 100644 --- a/kqueue.c +++ b/kqueue.c @@ -155,7 +155,7 @@ kq_insert(struct kqop *kqop, struct kevent *kev) } kqop->changes = newchange; - newresult = realloc(kqop->changes, + newresult = realloc(kqop->events, nevents * sizeof(struct kevent)); /*