PATCH: safe string copy and concetation
Ulrich Drepper
drepper@redhat.com
Tue Aug 8 09:44:00 GMT 2000
Christoph Hellwig <hch@caldera.de> writes:
> this patch implements the string functions strlcat and
> strlcpy for gnu libc.
This is horribly inefficient BSD crap. Using these function only
leads to other errors. Correct string handling means that you always
know how long your strings are and therefore you can you memcpy
(instead of strcpy).
Beside, those who are using strcat or variants deserved to be punished.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list