Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2001 21:14:44 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Mike Barcroft <mike@q9media.com>
Cc:        jkh@freebsd.org, audit@freebsd.org
Subject:   Re: CFR: add /etc/ttys console tuning to sysinstall
Message-ID:  <20010714211443.A88133@nagual.pp.ru>
In-Reply-To: <200107141608.f6EG8bh28861@coffee.q9media.com>
References:  <200107141608.f6EG8bh28861@coffee.q9media.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010714211443.A88133>