From 04593fd1f06297315cafac4b57721e20b09013c7 Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 20 Dec 2004 22:30:10 +0000 Subject: 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 --- src/lib/libc/net/getnameinfo.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3 index 2dfe60ad59..9085ff6971 100644 --- a/src/lib/libc/net/getnameinfo.3 +++ b/src/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 -- cgit v1.2.3-55-g6feb