Re:Arc4random – randomization for all occasions
by tedunangst on Friday November 21, 2014 @02:20PM
(#8642813)
Note that you can mechanically translate strcat(dst, src) to strlcat(dst, src, SIZE_MAX) with no loss of functionality or change in behavior. No worries about truncation, either. Exactly the same thing.
Now, if reading a piece of code that does strlcat(dst, src, SIZE_MAX) would make you feel uncomfortable, the question is how should you feel reading code that uses strcat?
More discussion here: http://stackoverflow.com/q/2114896/67591