Posted Apr 3, 2012 6:58 UTC (Tue) by smurf (subscriber, #17840)
[Link]
That code doesn't make any sense whatsoever. strlcpy does write a trailing zero.
What he wants is essentially a string copy which, when the buffer is too small, zeroes the buffer's FIRST byte, not its last.
A turning point for GNU libc
Posted Apr 9, 2012 11:04 UTC (Mon) by gdt (subscriber, #6284)
[Link]