Fix double increment bug.

This commit is contained in:
ayin 2007-11-12 09:44:37 +00:00
parent ae2349aa7b
commit 07482285c1
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ kqueue_change (EV_P_ int fd, int filter, int flags, int fflags)
{
struct kevent *ke;
array_needsize (struct kevent, kqueue_changes, kqueue_changemax, ++kqueue_changecnt, );
++kqueue_changecnt;
array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, );
ke = &kqueue_changes [kqueue_changecnt - 1];
memset (ke, 0, sizeof (struct kevent));