X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37d6243357b65ce2a2fa7a35b848ebefb88a3912..c0f8674c79186e83854f43e53e4805fd3ee866b4:/contrib/src/stc/gen_iface.py?ds=sidebyside

diff --git a/contrib/src/stc/gen_iface.py b/contrib/src/stc/gen_iface.py
index 6798593426..293eff48c8 100644
--- a/contrib/src/stc/gen_iface.py
+++ b/contrib/src/stc/gen_iface.py
@@ -338,7 +338,7 @@ methodOverrideMap = {
 
                  '''wxString %s() {
                         wxString text;
-                        int   len  = GetTextLength();
+                        int   len  = GetTextLength()+1;
                         char* buff = text.GetWriteBuf(len+1);
 
                         SendMsg(%s, len, (long)buff);