Marcus Meissner : xcopy: Allocate more space for the W buffer (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Sep 30 16:07:54 CDT 2013
Module: wine
Branch: master
Commit: a6550abee5d690b4d7c0e6ac039d0f240e954d48
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6550abee5d690b4d7c0e6ac039d0f240e954d48
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Sep 29 14:23:04 2013 +0200
xcopy: Allocate more space for the W buffer (Coverity).
---
programs/xcopy/xcopy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c
index f894b0e..e3312db 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;
More information about the wine-cvs
mailing list