diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-11-25 19:05:01 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-11-25 19:05:01 +0100 |
commit | b7617d50dca359c847b7dbb62447fcfe885eb360 (patch) | |
tree | 3e62cd9b929f68efc982b124d98a3512e64b05e3 /pyuno | |
parent | a7396e4654f9720c763505ea2da7460c9243f864 (diff) |
New try to fix pystring size
I don't know if it's ok but compilation doesn't fail
Change-Id: I6960b2cd4587b3f49ccfa7fb24874c288ccfce6a
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_util.cxx | 2 |
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 |