diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-20 22:30:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-20 22:30:11 +0000 |
commit | f9d0a9e66758330f2a8591e679b6ff93bb7d526a (patch) | |
tree | 17ce3bc878bb0d7b3a12465f572feef33ed18055 | |
parent | 6892eb56f228cc76d4ab061637bc4e42a640e7c6 (diff) |
Get rid of a bogus -32 that came about from misreading the ISC original
Mention what happens when a length parameter is zero
Talk about space for trailing NUL byte
-rw-r--r-- | lib/libc/net/getnameinfo.3 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/net/getnameinfo.3 b/lib/libc/net/getnameinfo.3 index 2dfe60ad59e..9085ff69711 100644 --- a/lib/libc/net/getnameinfo.3 +++ b/lib/libc/net/getnameinfo.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnameinfo.3,v 1.31 2004/12/20 22:20:43 millert Exp $ +.\" $OpenBSD: getnameinfo.3,v 1.32 2004/12/20 22:30:10 millert Exp $ .\" .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") .\" Copyright (C) 2000, 2001 Internet Software Consortium. @@ -59,7 +59,7 @@ are stored in .Fa host and .Fa serv -which have size parameters +which have length parameters .Fa hostlen and .Fa servlen . @@ -71,10 +71,12 @@ and the maximum value for .Fa servlen is -.Dv NI_MAXSERV -- 32, +.Dv NI_MAXSERV , as defined by .Aq Pa netdb.h . +If a length parameter is zero, no string will be stored. +Otherwise, enough space must be provided to store the +host name or service string plus a byte for the NUL terminator. .Pp The .Fa flags |