Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use a proper C string library like SDS.

Or move up from the 1970's Bell Labs, adopt C++ with the respective compiler switches to have bounds checking enabled for operator[]().

Better yet, use something else instead of one of those two, pick whatver is your fancy.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: