23 Aug
2018
23 Aug
'18
5:54 p.m.
Francois Gouget <fgouget(a)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(a)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. -- Alexandre Julliard julliard(a)winehq.org