Commit Diff


commit - 3c33a41fe837242f2308b2196b0a9f6de0e69051
commit + 7f66fd908e8558ea6737eb3acf9a13454d51d99d
blob - 8c31b179cff8b11424f2012ead323dc57a8dcafb
blob + e4c3bf1c8db468f3e321c5f175f89e387bf12b86
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -16,7 +16,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.134.2.1 2004/05/15 23:52:17 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.134.2.2 2004/05/30 16:24:21 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -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! */