From e9cd9b56a3fbf5f19f5f241c730666c7f3d89bcd Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 11 Oct 2003 02:54:41 +0000 Subject: [PATCH] bad realloc; found by awohl at chessclub svn:r87 --- kqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); /*