Hacker News new | ask | show | jobs
by saagarjha 2451 days ago
> Case in point, Idiom #46 in C[0] uses strncpy and predictably fails to correctly terminate the buffer.

calloc returns zeroed memory.