diff --git a/tinyxml2.cpp b/tinyxml2.cpp index b710b40..2536414 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1762,7 +1762,7 @@ void XMLPrinter::Print( const char* format, ... ) len = vsnprintf_s( _accumulator.Mem(), _accumulator.Capacity(), _TRUNCATE, format, va ); if ( len < 0 ) { expand *= 3/2; - accumulator.PushArr( expand ); + _accumulator.PushArr( expand ); } } char* p = _buffer.PushArr( len ) - 1;