+ oops, fixed

This commit is contained in:
Artem Pavlenko 2009-04-01 00:11:14 +00:00
parent ce45f8dec3
commit 6268f4fb80

View file

@ -49,7 +49,7 @@ namespace boost { namespace python {
PyObject * operator() (UnicodeString const& s) const PyObject * operator() (UnicodeString const& s) const
{ {
int32_t len = s.length(); int32_t len = s.length();
boost::scoped_array<wchar_t> buf(new wchar_t(len)); boost::scoped_array<wchar_t> buf(new wchar_t[len]);
UErrorCode err = U_ZERO_ERROR; UErrorCode err = U_ZERO_ERROR;
u_strToWCS(buf.get(),len,0,s.getBuffer(),len,&err); u_strToWCS(buf.get(),len,0,s.getBuffer(),len,&err);
PyObject *obj = Py_None; PyObject *obj = Py_None;