Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libevent fix a bad realloc; from awohl@chessclub



details:   https://anonhg.NetBSD.org/src/rev/99e351a1331b
branches:  trunk
changeset: 553184:99e351a1331b
user:      provos <provos%NetBSD.org@localhost>
date:      Sat Oct 11 18:30:09 2003 +0000

description:
fix a bad realloc; from awohl@chessclub

diffstat:

 lib/libevent/kqueue.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6d2dfa01e8b9 -r 99e351a1331b lib/libevent/kqueue.c
--- a/lib/libevent/kqueue.c     Sat Oct 11 17:40:15 2003 +0000
+++ b/lib/libevent/kqueue.c     Sat Oct 11 18:30:09 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kqueue.c,v 1.3 2003/06/13 04:11:31 itojun Exp $        */
+/*     $NetBSD: kqueue.c,v 1.4 2003/10/11 18:30:09 provos Exp $        */
 /*     $OpenBSD: kqueue.c,v 1.5 2002/07/10 14:41:31 art Exp $  */
 
 /*
@@ -159,7 +159,7 @@
                }
                kqop->changes = newchange;
 
-               newresult = realloc(kqop->changes,
+               newresult = realloc(kqop->events,
                                    nevents * sizeof(struct kevent));
 
                /*



Home | Main Index | Thread Index | Old Index