Date: Fri, 15 May 1998 13:43:38 +0000 (GMT) From: Luke Kenneth Casson Leighton <lkcl@switchboard.net> To: Richard Sharpe <sharpe@ns.aus.com> Subject: Re: Changes to clitar.c: strcpy to pstrcpy ? In-Reply-To: <3.0.5.32.19980515204803.0085de50@mail.adelaide.on.net>
On Fri, 15 May 1998, Richard Sharpe wrote:
> Hi,
>
> I notice that someone has carefully gone through clitar and changed every
> occurrence of strcpy to pstrcpy. I would prefer to use strncpy and strncat
> where needed, especially since I use dynamically allocated strings in clitar.
>
> Are there any words of objection or caution?
yes. use safe_strcpy() for security reasons