Francois Gouget fgouget@codeweavers.com writes:
Once a va_list has been iterated over one must reset it to the start. So make a copy so we can call vsnprintf() more than once in case we have to reallocate the buffer. Also clearly separate the vstrfmtmake() part from the log writing one in xprintf().
Signed-off-by: Francois Gouget fgouget@codeweavers.com
programs/winetest/util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
va_copy is not portable and we try to avoid it.