Marcus Meissner : attrib: Fixed an allocation size (Coverity).
Module: wine Branch: master Commit: 7c8c90abbb1e76ef391d3a80d690e9db9adf7c1b URL: http://source.winehq.org/git/wine.git/?a=commit;h=7c8c90abbb1e76ef391d3a80d6... Author: Marcus Meissner <marcus(a)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;
participants (1)
-
Alexandre Julliard