From 6268f4fb802837930ff06559fc2f284bd62cb8df Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 1 Apr 2009 00:11:14 +0000 Subject: [PATCH] + oops, fixed --- bindings/python/mapnik_feature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;