[PATCH] inputbuffer is a WCHAR array
Marcus Meissner
meissner at suse.de
Thu Feb 8 09:41:22 CST 2007
Hi,
spotted by coverity, we missed *sizeof(WCHAR)
in allocation.
Ciao, Marcus
---
tools/wmc/mcl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/wmc/mcl.c b/tools/wmc/mcl.c
index 62cdf25..1c16fe3 100644
--- a/tools/wmc/mcl.c
+++ b/tools/wmc/mcl.c
@@ -187,7 +187,7 @@ static int fill_inputbuffer(void)
if(!inputbuffer)
{
- inputbuffer = xmalloc(INPUTBUFFER_SIZE);
+ inputbuffer = xmalloc(INPUTBUFFER_SIZE*sizeof(WCHAR));
xlatebuffer = xmalloc(INPUTBUFFER_SIZE);
}
--
1.4.3.4
More information about the wine-patches
mailing list