Subject: Re: package menus
To: David Laight <david@l8s.co.uk>
From: =?iso-8859-2?Q?Micha=B3?= Pasternak <michal@pasternak.w.lub.pl>
List: tech-pkg
Date: 04/09/2003 02:02:48
David Laight [Wed, Apr 09, 2003 at 12:04:07AM +0100]:
> > later, but for now, try to change all strcpy()'s and strcat()'s into
> > strncpy()'s and strncat()'s.
> 
> Why?  strncpy() and strncat() do not DTRT...
> 
> (As well as not guaranteeing to generate a null terminated string,
> they are required to waste time zeroing out the unused part of the
> target buffer.)

WM menu generation should be rather fast or safe?

-- 
Micha³ Pasternak :: http://pasternak.w.lub.pl
$ mv /Almo /var