From 5e424b81d24d82f7584ea175cd6579baba3695d7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 28 Apr 2010 10:59:42 -0400 Subject: found memory corruption in the obt xqueue and paths --- obt/xqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'obt/xqueue.c') diff --git a/obt/xqueue.c b/obt/xqueue.c index 2304ea42..e5d2da31 100644 --- a/obt/xqueue.c +++ b/obt/xqueue.c @@ -78,8 +78,8 @@ static inline void grow(void) { if (qend < qstart) { /* it wraps around to 0 right now */ for (i = 0; i <= qend; ++i) - q[newsz+i] = q[i]; - qend = newsz + qend; + q[qsz+i] = q[i]; + qend = qsz + qend; } qsz = newsz; @@ -113,7 +113,7 @@ static gboolean read_events(gboolean block) return sth; /* return if we read anything */ } -static void pop(gulong p) +static void pop(const gulong p) { /* remove the event */ --qnum; -- cgit v1.2.3