From fc976c1ab1dcf113b5a4d816f6e4fc9e1947aa87 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Oct 2004 19:41:22 +0000 Subject: [PATCH] x86-64 fix --- stepmania/src/StdString.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StdString.h b/stepmania/src/StdString.h index d313672bae..db09d2b952 100644 --- a/stepmania/src/StdString.h +++ b/stepmania/src/StdString.h @@ -906,8 +906,12 @@ public: if( bExactSizeSupported ) { + va_list tmp; + va_copy( tmp, argList ); char ignore; - int iNeeded = ssvsprintf( &ignore, 0, szFormat, argList ); + int iNeeded = ssvsprintf( &ignore, 0, szFormat, tmp ); + va_end(tmp); + char *buf = GetBuffer( iNeeded+1 ); ssvsprintf( buf, iNeeded+1, szFormat, argList ); ReleaseBuffer( iNeeded );