Posted Nov 14, 2012 11:15 UTC (Wed) by abartlet (✭ supporter ✭, #3928)
In reply to: that smell by ncm
Parent article: Crowding out OpenBSD
We do use strlcpy. We moved from safe_strcpy() and the custom wrappers fstrcpy() and pstrcpy() (for fstrings of 256 and pstrings of 1024 bytes) to at least something others have seen before. Natrually, a function called safe_ wasn't really safe (just safe against memory overwrite), but the name made us feel better about it despite having the same issues as strlcpy().
As code is rewritten, most strings are dynamically allocated talloc buffers, but stragglers remain.