On 2021-07-22 09:11:56 -0700, Kevin J. McCarthy wrote:
> What do you think of using memccpy in the strfcpy macro,

IMHO, it is better than strncpy, which unnecessarily pads with
null bytes.

> if it's available, as Ian suggested?

The Linux memccpy(3) man page says:

CONFORMING TO
       POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.

So, for Mutt, it should be available everywhere.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to