From 97d6a30b2cb028c228982ae3bb93d3701f83f5ed Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 7 May 2004 22:17:13 +0000 Subject: [PATCH] wxMemoryBuffer typemap needs to set the data length git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/my_typemaps.i | 1 + 1 file changed, 1 insertion(+) diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 9e4c01a0c2..d9b078bc4e 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -103,6 +103,7 @@ $1 = new wxMemoryBuffer(len); temp = True; memcpy($1->GetData(), str, len); + $1->SetDataLen(len); } %typemap(freearg) wxMemoryBuffer& {