repo: ngircd
action: commit
revision: 
path_from: 
revision_from: a49a580a778d3ac194439c8fa14e7dc915b7b2b0:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit a49a580a778d3ac194439c8fa14e7dc915b7b2b0
Author: Alexander Barton 
Date:   Sun May 30 16:25:51 2004 +0000

    Fixed wrong buffer size calculation for resolver results.

diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index b2ad9a257195b8b580eda94de8a8f13b9e4a8a33..
index ..e5e59de7e9a6c8ebe275bdbae52feedb1b24eb3a 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -16,7 +16,7 @@

 #include "portab.h"

-static char UNUSED id[] = "$Id: conn.c,v 1.136 2004/05/11 00:53:14 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.137 2004/05/30 16:25:51 alex Exp $";

 #include "imp.h"
 #include 
@@ -1634,7 +1634,7 @@ Read_Resolver_Result( INT r_fd )
 	assert( s != NULL );

 	/* Read result from pipe */
-	len = read( r_fd, s->buffer + s->bufpos, sizeof( s->buffer ) - HOST_LEN - 1 );
+	len = read( r_fd, s->buffer + s->bufpos, sizeof( s->buffer ) - s->bufpos - 1 );
 	if( len < 0 )
 	{
 		/* Error! */

-----END OF PAGE-----