From a6550abee5d690b4d7c0e6ac039d0f240e954d48 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 29 Sep 2013 14:23:04 +0200 Subject: [PATCH] xcopy: Allocate more space for the W buffer (Coverity). --- programs/xcopy/xcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index f894b0ef2a3..e3312db7302 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -114,7 +114,7 @@ static int __cdecl XCOPY_wprintf(const WCHAR *format, ...) { */ if (!output_bufW) output_bufW = HeapAlloc(GetProcessHeap(), 0, - MAX_WRITECONSOLE_SIZE); + MAX_WRITECONSOLE_SIZE*sizeof(WCHAR)); if (!output_bufW) { WINE_FIXME("Out of memory - could not allocate 2 x 64K buffers\n"); return 0;