From owner-cvs-all Fri Nov 8 9:51:35 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AE7337B401; Fri, 8 Nov 2002 09:51:34 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39F9443E3B; Fri, 8 Nov 2002 09:51:34 -0800 (PST) (envelope-from ume@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gA8HnWmV058728; Fri, 8 Nov 2002 09:49:32 -0800 (PST) (envelope-from ume@repoman.freebsd.org) Received: (from ume@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gA8HnW6T058727; Fri, 8 Nov 2002 09:49:32 -0800 (PST) Message-Id: <200211081749.gA8HnW6T058727@repoman.freebsd.org> From: Hajimu UMEMOTO Date: Fri, 8 Nov 2002 09:49:32 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/net getaddrinfo.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ume 2002/11/08 09:49:32 PST Modified files: (Branch: RELENG_4) lib/libc/net getaddrinfo.c Log: MFC 1.35, 1.36: - kill strcpy - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment - scopeid is u_int32_t - strtoul pedant. pointed out by deraadt Revision Changes Path 1.9.2.14 +75 -79 src/lib/libc/net/getaddrinfo.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message