summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyuno/source/module/pyuno_util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_util.cxx b/pyuno/source/module/pyuno_util.cxx
index 5c4b80831313..da311cd631fe 100644
--- a/pyuno/source/module/pyuno_util.cxx
+++ b/pyuno/source/module/pyuno_util.cxx
@@ -87,7 +87,7 @@ OUString pyString2ustring( PyObject *pystr )
#else
PyObject* pUtf8 = PyUnicode_AsUTF8String(pystr);
char *pStr = PyStr_AsString(pUtf8);
- ret = OUString(pUtf8, strlen(pUtf8), RTL_TEXTENCODING_UTF8);
+ ret = OUString(pStr, strlen(pStr), RTL_TEXTENCODING_UTF8);
Py_DECREF(pUtf8);
#endif
#endif