From owner-svn-src-head@FreeBSD.ORG Sat Oct 1 19:43:15 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B32E81065743; Sat, 1 Oct 2011 19:43:15 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37EC98FC14; Sat, 1 Oct 2011 19:43:15 +0000 (UTC) Received: by qadz30 with SMTP id z30so1212654qad.13 for ; Sat, 01 Oct 2011 12:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2fw5u97E/sVU7m75jU+CQ8MmIVFROyi9QjlxEx1DnQ0=; b=NUpz4CvH76FsTX+cCAyuOCQhvJWIi5md24yGyF+WbOYoMhzbJj6jYfipKwr+QUrgRW jLbCzYFqFhfiEZI4miJVixYeSmULZnIQJGSxZ42FgEm1m8xq2e8GxNvUoYX+vbFfBUqr TbpfnExLw0w0nwd4GY/6lVncRp6l2bdCJalYc= MIME-Version: 1.0 Received: by 10.224.215.2 with SMTP id hc2mr9832703qab.324.1317498193710; Sat, 01 Oct 2011 12:43:13 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Sat, 1 Oct 2011 12:43:13 -0700 (PDT) In-Reply-To: <201110011219.p91CJmTc016767@svn.freebsd.org> References: <201110011219.p91CJmTc016767@svn.freebsd.org> Date: Sat, 1 Oct 2011 12:43:13 -0700 Message-ID: From: Garrett Cooper To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225897 - head/lib/libc/gen X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 19:43:15 -0000 On Sat, Oct 1, 2011 at 5:19 AM, Ed Schouten wrote: > Author: ed > Date: Sat Oct =A01 12:19:48 2011 > New Revision: 225897 > URL: http://svn.freebsd.org/changeset/base/225897 ... > + =A0 =A0 =A0 if (s =3D=3D NULL) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 s =3D def; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dlen =3D sizeof(def) - LEN_PATH_DEV; > + =A0 =A0 =A0 } else > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dlen =3D L_ctermid - LEN_PATH_DEV; > + =A0 =A0 =A0 strcpy(s, _PATH_TTY); Why not use strlcpy, etc with dlen? -Garrett