Re:Beware of strncpy and strncat
by loeg on Wednesday June 06, 2018 @04:07PM
(#17250623)
Ok, but, we've already got that kind of foot-shooting enabled by strncpy(), and glibc can't remove it as it is part of ISO C. If glibc must contain a truncating string copy, I'd much rather have strlcpy than strncpy. Do you find that persuasive?
[ Parent
| on HN ]
There are no comments on this comment yet.