diff --git a/bindings/python/mapnik_feature.cpp b/bindings/python/mapnik_feature.cpp index 32dfd2763..b2b9e577f 100644 --- a/bindings/python/mapnik_feature.cpp +++ b/bindings/python/mapnik_feature.cpp @@ -49,7 +49,7 @@ namespace boost { namespace python { PyObject * operator() (UnicodeString const& s) const { int32_t len = s.length(); - boost::scoped_array buf(new wchar_t(len)); + boost::scoped_array buf(new wchar_t[len]); UErrorCode err = U_ZERO_ERROR; u_strToWCS(buf.get(),len,0,s.getBuffer(),len,&err); PyObject *obj = Py_None;