]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/gen_iface.py
added translation of mac system into language, adaption of search paths
[wxWidgets.git] / src / stc / gen_iface.py
index 6798593426e25d97e7818f572a3a690b890aa3eb..be86c9ce0e873a5a4d3b15a045c5b3331e5c43a9 100644 (file)
@@ -112,7 +112,7 @@ methodOverrideMap = {
                     '''wxString %s(int* linePos) {
                        wxString text;
                        int len = LineLength(GetCurrentLine());
-                       char* buf = text.GetWriteBuf(len+1);
+                       char* buf = text.GetWriteBuf(len);
 
                        int pos = SendMsg(%s, len, (long)buf);
                        text.UngetWriteBuf();
@@ -280,7 +280,7 @@ methodOverrideMap = {
                     '''wxString %s(int line) {
                        wxString text;
                        int len = LineLength(line);
-                       char* buf = text.GetWriteBuf(len+1);
+                       char* buf = text.GetWriteBuf(len);
 
                        int pos = SendMsg(%s, line, (long)buf);
                        text.UngetWriteBuf();
@@ -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);