Commit cbe3fb69 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Use the correct buffer - reported by Jesse Allen.

parent 02a810f1
......@@ -583,11 +583,11 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist )
pf_rebuild_format_string( fmt, &flags );
if( pf_is_double_format( flags.Format ) )
sprintf( number, fmt, va_arg(valist, double) );
sprintf( x, fmt, va_arg(valist, double) );
else
sprintf( number, fmt, va_arg(valist, int) );
sprintf( x, fmt, va_arg(valist, int) );
r = pf_output_stringA( out, number, -1 );
r = pf_output_stringA( out, x, -1 );
if( x != number )
HeapFree( GetProcessHeap(), 0, number );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment