'''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();
'''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();
'''wxString %s() {
wxString text;
- int len = GetTextLength();
+ int len = GetTextLength()+1;
char* buff = text.GetWriteBuf(len+1);
SendMsg(%s, len, (long)buff);