Module: wine Branch: master Commit: 3f4b06edf15d546cb7965234484896cf55e8ca04 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f4b06edf15d546cb796523448...
Author: Piotr Caban piotr@codeweavers.com Date: Wed Aug 28 10:42:15 2013 +0200
oleaut32: Allocate bigger buffer in WMSFT_compile_names function.
---
dlls/oleaut32/typelib.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 02f9ced..4f55755 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -8905,7 +8905,8 @@ static HRESULT WMSFT_compile_names(ITypeLibImpl *This, str->offset = size; }
- file->name_seg.data = data = heap_alloc(file->name_seg.len); + /* Allocate bigger buffer so we can temporarily NULL terminate the name */ + file->name_seg.data = data = heap_alloc(file->name_seg.len+1);
last_offs = 0; LIST_FOR_EACH_ENTRY(str, &This->name_list, TLBString, entry) {