News for hackers. Stuff that matters.
Re:Stop using strncpy already by InclinedPlane on Thursday April 04, 2013 @04:44AM (#5491623)
Null terminated strings are one of the worst failures of design in programming languages of all time. In C you're sort of stuck with turd polishing. It's never going to be good or right, it's always going to be partly broken in some way.

If I were writing a new code-base in C I'd standardize on using bstring but that too doesn't solve every problem.

Re:Stop using strncpy already by pjmlp on Thursday April 04, 2013 @07:42AM (#5492073)
The two biggest failures that C brought to computer security were null terminated strings and implicit decay of arrays into pointers.