Commit 854c9b20 authored by Alexandre Julliard's avatar Alexandre Julliard

cmd.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead.

parent 5dcd3c4d
......@@ -158,7 +158,7 @@ void WCMD_output (const WCHAR *format, ...) {
int ret;
va_start(ap,format);
ret = wvsprintf (string, format, ap);
ret = vsnprintfW(string, sizeof(string)/sizeof(WCHAR), format, ap);
if( ret >= (sizeof(string)/sizeof(WCHAR))) {
WINE_ERR("Output truncated in WCMD_output\n" );
ret = (sizeof(string)/sizeof(WCHAR)) - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment