// Scintilla source code edit control
-// PlatWX.cxx - implementation of platform facilities on wxWindows
+// PlatWX.cxx - implementation of platform facilities on wxWidgets
// Copyright 1998-1999 by Neil Hodgson <neilh@scintilla.org>
// Robin Dunn <robin@aldunn.com>
// The License.txt file describes the conditions under which this software may be distributed.
strncpy(buffer, str, len);
buffer[len]=0;
- wxString cstr(buffer, wxConvUTF8);
+ wxString cstr(buffer, wxConvUTF8, len);
delete[] buffer;
return cstr;