Re:Beware of strncpy and strncat
by masklinn on Wednesday June 06, 2018 @12:26PM
(#17248474)
Can't you just strncpy sizeof(dest) if you're going to zero-out the last byte of the buffer unconditionally?
[ Parent
| on HN ]