* resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen

in parallel to bumping up the buffer pointer.
This commit is contained in:
Andreas Schwab 2002-07-02 09:36:44 +00:00
parent 32f65d5dae
commit f4554c1121
1 changed files with 3 additions and 1 deletions

View File

@ -328,7 +328,9 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result,
}
cp += n;
*alias_pointer++ = bp;
bp += strlen (bp) + 1;
n = strlen (bp) + 1;
bp += n;
linebuflen -= n;
result->n_addrtype = class == C_IN ? AF_INET : AF_UNSPEC;
++have_answer;
}