[PATCH] winetest: Fix vstrfmtmake() for large strings.

Alexandre Julliard julliard at winehq.org
Thu Aug 23 12:54:09 CDT 2018


Francois Gouget <fgouget at 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 at 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 at winehq.org



More information about the wine-devel mailing list