Vaya con Dios, strncpy

Share Post Share reddit This week strncpy(3) was removed from the Linux kernel.  It has a bad, and somewhat undeserved, reputation as a source of bugs and vulnerabilities. If you’re not familiar with it, here’s what it looks like: char * strncpy(char * dst, const char...