This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: safe string copy and concetation
- To: Christoph Hellwig <hch at caldera dot de>
- Subject: Re: PATCH: safe string copy and concetation
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 08 Aug 2000 09:43:59 -0700
- Cc: libc-alpha at sources dot redhat dot com
- References: <20000808181701.A29165@ns.lst.de>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------