From: Niels Provos Date: Sat, 11 Oct 2003 02:54:41 +0000 (+0000) Subject: bad realloc; found by awohl at chessclub X-Git-Tag: release-1.1b~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9cd9b56a3fbf5f19f5f241c730666c7f3d89bcd;p=libevent bad realloc; found by awohl at chessclub svn:r87 --- 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)); /*