X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccb234b4d0b4f52ddb3100b55b53b32d1ea78d52..e2a5251d0109a1be6b9ce5c818d89f56ebfaeae1:/src/motif/textctrl.cpp diff --git a/src/motif/textctrl.cpp b/src/motif/textctrl.cpp index 26d60b1878..b518e2fe45 100644 --- a/src/motif/textctrl.cpp +++ b/src/motif/textctrl.cpp @@ -401,7 +401,7 @@ void wxTextCtrl::WriteText(const wxString& text) void wxTextCtrl::AppendText(const wxString& text) { - long textPosition = GetLastPosition() + strlen(text); + long textPosition = GetLastPosition() + text.length(); XmTextInsert ((Widget) m_mainWidget, GetLastPosition(), wxConstCast(text.c_str(), char)); XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);