From 96ec26d14d744341db76301903fc5beaae6b37ff Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Wed, 9 Dec 2020 09:55:08 -0800 Subject: need to re-issue va_start before the second vsnprintf --- src/aapl/astring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/aapl/astring.h b/src/aapl/astring.h index 29d876f4..34855405 100644 --- a/src/aapl/astring.h +++ b/src/aapl/astring.h @@ -450,6 +450,7 @@ template StrTmpl::StrTmpl( long lenGuess, const char *format, ... ) long written = vsnprintf( data, lenGuess+1, format, args ); if ( written > lenGuess ) { setSpace( written ); + va_start( args, format ); written = vsnprintf( data, written+1, format, args ); } chop( written ); -- cgit v1.2.1