mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Use the correct buffer - reported by Jesse Allen.
This commit is contained in:
parent
02a810f10c
commit
cbe3fb6922
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user