X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e730a78765d0e70ca5b77512569c94585070fe2..9a33ef7c3cc827658ba12b553c40af432f10bc3b:/src/stc/gen_iface.py diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 885357f398..d88aae231b 100644 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -395,7 +395,7 @@ methodOverrideMap = { int len = end - start; if (!len) return wxEmptyString; - wxMemoryBuffer mbuf(len+1); + wxMemoryBuffer mbuf(len+2); char* buf = (char*)mbuf.GetWriteBuf(len+1); SendMsg(%s, 0, (long)buf); mbuf.UngetWriteBuf(len);