]> 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 293eff48c84ee7af49aba8959eec31b593eeb259..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();