diff options
author | Adrian Thurston <thurston@colm.net> | 2020-12-09 09:55:08 -0800 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-12-09 09:55:08 -0800 |
commit | 96ec26d14d744341db76301903fc5beaae6b37ff (patch) | |
tree | 728b85144c2e982982e396690c10f80c472453fd /src/aapl/astring.h | |
parent | fe0e546c65accd2e9ca0fa5410fd88a9b64b36a4 (diff) | |
download | colm-96ec26d14d744341db76301903fc5beaae6b37ff.tar.gz |
need to re-issue va_start before the second vsnprintf
Diffstat (limited to 'src/aapl/astring.h')
-rw-r--r-- | src/aapl/astring.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<class T> StrTmpl<T>::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 ); |