mirror of
https://github.com/osmarks/ngircd.git
synced 2025-07-01 01:22:50 +00:00
Fixed wrong buffer size calculation for resolver results.
This commit is contained in:
parent
3c33a41fe8
commit
7f66fd908e
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#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 "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -1634,7 +1634,7 @@ Read_Resolver_Result( INT r_fd )
|
|||||||
assert( s != NULL );
|
assert( s != NULL );
|
||||||
|
|
||||||
/* Read result from pipe */
|
/* 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 )
|
if( len < 0 )
|
||||||
{
|
{
|
||||||
/* Error! */
|
/* Error! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user