Alexandre Julliard : xcopy.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead.
Module: wine Branch: master Commit: 91421f0f0225f6e11e34b76e527419d9cd5098db URL: http://source.winehq.org/git/wine.git/?a=commit;h=91421f0f0225f6e11e34b76e52... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jan 2 22:01:16 2009 +0100 xcopy.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead. --- programs/xcopy/xcopy.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 273047c..e89c404 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -43,6 +43,7 @@ #include <stdio.h> #include <windows.h> #include <wine/debug.h> +#include <wine/unicode.h> #include "xcopy.h" WINE_DEFAULT_DEBUG_CHANNEL(xcopy); @@ -999,9 +1000,8 @@ int XCOPY_wprintf(const WCHAR *format, ...) { return 0; } - /* Use wvsprintf to store output into unicode buffer */ va_start(parms, format); - len = vswprintf(output_bufW, format, parms); + len = vsnprintfW(output_bufW, MAX_WRITECONSOLE_SIZE/sizeof(WCHAR), format, parms); va_end(parms); /* Try to write as unicode all the time we think its a console */
participants (1)
-
Alexandre Julliard