This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Libiberty's snprintf for v3?
- From: Andreas Schwab <schwab at suse dot de>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: dj at redhat dot com, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org,pcarlini at unitus dot it
- Date: Wed, 23 Apr 2003 13:45:59 +0200
- Subject: Re: Libiberty's snprintf for v3?
- References: <200304220052.h3M0qO830610@greed.delorie.com><200304220247.WAA19945@caip.rutgers.edu><200304220313.h3M3D4c32419@greed.delorie.com><200304222313.TAA04743@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu> writes:
|> +
|> + /* Copy `ap' before using it. */
|> + va_copy (ap2, ap);
You need to call va_end on the va_alist copy before returning.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."