Marcus Meissner : attrib: Fixed an allocation size (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Sep 30 16:07:54 CDT 2013
Module: wine
Branch: master
Commit: 7c8c90abbb1e76ef391d3a80d690e9db9adf7c1b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7c8c90abbb1e76ef391d3a80d690e9db9adf7c1b
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Sep 29 13:01:51 2013 +0200
attrib: Fixed an allocation size (Coverity).
---
programs/attrib/attrib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/attrib/attrib.c b/programs/attrib/attrib.c
index 443a0c0..4342779 100644
--- a/programs/attrib/attrib.c
+++ b/programs/attrib/attrib.c
@@ -68,7 +68,7 @@ static int __cdecl ATTRIB_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