diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2002-07-03 13:01:43 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2002-07-03 13:01:43 +0000 |
| commit | 148a348454a0bbec0dab6f790e7d47c9850c0128 (patch) | |
| tree | 2770dec874759bf70934f5db3c3c5aed108a1fb1 /lib/libc/net/getnetbydns.c | |
| parent | db0a3b09965d55f9dee7a58fb04e31df42b6ae73 (diff) | |
Diffstat (limited to 'lib/libc/net/getnetbydns.c')
| -rw-r--r-- | lib/libc/net/getnetbydns.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c index e1a11d2e5d3ac..087aa5f6b9bfc 100644 --- a/lib/libc/net/getnetbydns.c +++ b/lib/libc/net/getnetbydns.c @@ -173,9 +173,7 @@ static char *net_aliases[MAXALIASES], netbuf[PACKETSZ]; } cp += n; *ap++ = bp; - n = strlen(bp) + 1; - bp += n; - buflen -= n; + bp += strlen(bp) + 1; net_entry.n_addrtype = (class == C_IN) ? AF_INET : AF_UNSPEC; haveanswer++; |
