Changes to clitar.c: strcpy to pstrcpy ?

Luke Kenneth Casson Leighton lkcl at switchboard.net
Fri May 15 13:43:38 GMT 1998


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



More information about the samba-technical mailing list