From 2d3718151d4f4248618f5c9f3ea5765f91f39eef Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 16 Jan 2009 04:17:22 +0000 Subject: Fix a pointer arithmetic issue leading to incorrect peer data being copied. Allocate correct size for debugbuffer. Expect exact values on find keywords, not only prefix match. --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index fd1698a..6cca576 100644 --- a/opentracker.c +++ b/opentracker.c @@ -201,7 +201,7 @@ static void server_mainloop( ) { ws.inbuf = malloc( G_INBUF_SIZE ); ws.outbuf = malloc( G_OUTBUF_SIZE ); #ifdef _DEBUG_HTTPERROR - ws.debugbuf= malloc( G_INBUF_SIZE ); + ws.debugbuf= malloc( G_DEBUGBUF_SIZE ); #endif if( !ws.inbuf || !ws.outbuf ) panic( "Initializing worker failed" ); -- cgit v1.2.3