summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2003-10-11 02:54:41 +0000
committerNiels Provos <provos@gmail.com>2003-10-11 02:54:41 +0000
commite9cd9b56a3fbf5f19f5f241c730666c7f3d89bcd (patch)
tree5068bfd8f3ea1225209223218bea8498e2ce3579 /kqueue.c
parent1d66008bbf3ce97ec23e7193cb4daefda06d1955 (diff)
downloadlibevent-e9cd9b56a3fbf5f19f5f241c730666c7f3d89bcd.tar.gz
bad realloc; found by awohl at chessclub
svn:r87
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c2
1 files changed, 1 insertions, 1 deletions
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));
/*