diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-11-25 16:55:25 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-11-25 16:55:25 +0000 |
commit | 8ea4657f64e7575696be4bba5b2a4309ac029ae4 (patch) | |
tree | dc6bf9a124d91381906463bbedd4233be01749a1 /pyuno | |
parent | German comment translations (diff) | |
download | core-8ea4657f64e7575696be4bba5b2a4309ac029ae4.tar.gz core-8ea4657f64e7575696be4bba5b2a4309ac029ae4.zip |
attempted blind fix for pystring size.
Change-Id: I637292be9791484a58b60e8889962176a37e2c07
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_util.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_util.cxx b/pyuno/source/module/pyuno_util.cxx index 9f058ef3f35e..5c4b80831313 100644 --- a/pyuno/source/module/pyuno_util.cxx +++ b/pyuno/source/module/pyuno_util.cxx @@ -86,7 +86,8 @@ OUString pyString2ustring( PyObject *pystr ) ret = OUString(pUtf8, size, RTL_TEXTENCODING_UTF8); #else PyObject* pUtf8 = PyUnicode_AsUTF8String(pystr); - ret = OUString(PyStr_AsString(pUtf8), PyStr_Size(pUtf8), RTL_TEXTENCODING_UTF8); + char *pStr = PyStr_AsString(pUtf8); + ret = OUString(pUtf8, strlen(pUtf8), RTL_TEXTENCODING_UTF8); Py_DECREF(pUtf8); #endif #endif |