Re:Strcpycat
by apaprocki on Friday January 20, 2012 @10:49PM
(#3492533)
Deficiencies in strl aside, most C programmers do not realize the target-padding that is going on with the strn family. Discussion is always good, but it will be much more of an uphill battle to introduce new routines than it would be to get strn users to use strl. I've seen too many people bitten by declaring something like:
and using strncpy w/ sizeof(buf) to populate it.
[ Parent
| on HN ]
There are no comments on this comment yet.