This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [libc-alpha] Re: Wish for 2002
- From: Andreas Schwab <schwab at suse dot de>
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Cc: Christoph Hellwig <hch at ns dot caldera dot de>,<libc-alpha at sources dot redhat dot com>
- Date: Fri, 04 Jan 2002 11:27:58 +0100
- Subject: Re: [libc-alpha] Re: Wish for 2002
- References: <Pine.LNX.4.33.0201031014270.26411-100000@ashi.FootPrints.net>
Kaz Kylheku <kaz@ashi.footprints.net> writes:
|> The strlcat operation can be done like this:
|>
|> snprintf(destination, limit, "%s%s", destination, source);
This is undefined, because destination is both read and written in an
overlapping way.
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5