From owner-freebsd-audit Sat Jul 14 10:15: 0 2001 Delivered-To: freebsd-audit@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id EEF2C37B405; Sat, 14 Jul 2001 10:14:56 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f6EHEk188232; Sat, 14 Jul 2001 21:14:46 +0400 (MSD) (envelope-from ache) Date: Sat, 14 Jul 2001 21:14:44 +0400 From: "Andrey A. Chernov" To: Mike Barcroft Cc: jkh@freebsd.org, audit@freebsd.org Subject: Re: CFR: add /etc/ttys console tuning to sysinstall Message-ID: <20010714211443.A88133@nagual.pp.ru> References: <200107141608.f6EG8bh28861@coffee.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200107141608.f6EG8bh28861@coffee.q9media.com> User-Agent: Mutt/1.3.19i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 14, 2001 at 12:08:37 -0400, Mike Barcroft wrote: > In configTtys(): > [...] > > + char templ[20]; > [...] > > + strcpy(templ, _PATH_TTYS ".XXXXXX"); > [...] > > This makes the assumption that _PATH_TTYS is < 13. Maybe you should > do something like: > > #define _X_EXTENTION ".XXXXXX" > char templ[sizeof(_PATH_TTYS) + sizeof(_X_EXTENTION) - 1]; > strcpy(templ, _PATH_TTYS _X_EXTENTION); Ok. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message