Hello!

On Thu, Oct 27, 2005 at 10:46:04AM -0700, John N. Brahy wrote:
>[...]

>strcat(mailbox, MAILSPOOLHOME);

=>

>strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));

>Should I look out for anything special or is it safe to do this
>everywhere I see strcat or strcpy?

Works only if mailbox is directly declared as char mailbox[some_size];

If mailbox is a char*, sizeof(mailbox) is utterly wrong.

Kind regards,

Hannah.

Reply via email to