diff options
author | millert <> | 1998-03-16 05:07:02 +0000 |
---|---|---|
committer | millert <> | 1998-03-16 05:07:02 +0000 |
commit | 7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc (patch) | |
tree | d54fd8f615df82fffca9638aee76c24acf5b731f /src/lib/libc/net/getnetent.3 | |
parent | fcd822203d1ea91b0c87703a36e5819909a8f7f4 (diff) | |
download | openbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.tar.gz openbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.tar.bz2 openbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.zip |
Use fgetln(3) instead of fgets(3) so we can easily recognize lines
that are too long and ignore them instead of corrupting later entries.
Diffstat (limited to 'src/lib/libc/net/getnetent.3')
-rw-r--r-- | src/lib/libc/net/getnetent.3 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libc/net/getnetent.3 b/src/lib/libc/net/getnetent.3 index a33ac0fac5..5864b75839 100644 --- a/src/lib/libc/net/getnetent.3 +++ b/src/lib/libc/net/getnetent.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: getnetent.3,v 1.4 1997/04/05 21:13:07 millert Exp $ | 1 | .\" $OpenBSD: getnetent.3,v 1.5 1998/03/16 05:06:56 millert Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1983, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -141,10 +141,8 @@ and | |||
141 | functions appeared in | 141 | functions appeared in |
142 | .Bx 4.2 . | 142 | .Bx 4.2 . |
143 | .Sh BUGS | 143 | .Sh BUGS |
144 | The data space used by | 144 | The data space used by these functions is static; if future use |
145 | these functions is static; if future use requires the data, it should be | 145 | requires the data, it should be copied before any subsequent calls |
146 | copied before any subsequent calls to these functions overwrite it. | 146 | to these functions overwrite it. Only Internet network numbers |
147 | Only Internet network | 147 | are currently understood. Expecting network numbers to fit in no |
148 | numbers are currently understood. | 148 | more than 32 bits is naive. |
149 | Expecting network numbers to fit | ||
150 | in no more than 32 bits is naive. | ||