bad realloc; found by awohl at chessclub

svn:r87
This commit is contained in:
Niels Provos 2003-10-11 02:54:41 +00:00
parent 1d66008bbf
commit e9cd9b56a3

View File

@ -155,7 +155,7 @@ kq_insert(struct kqop *kqop, struct kevent *kev)
} }
kqop->changes = newchange; kqop->changes = newchange;
newresult = realloc(kqop->changes, newresult = realloc(kqop->events,
nevents * sizeof(struct kevent)); nevents * sizeof(struct kevent));
/* /*