diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-01-31 06:41:01 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-01-31 06:41:01 -0800 |
commit | 2b9fbb15c8f5b5af154bdffaf334e4b75a601e90 (patch) | |
tree | a6a3a30cb56f7dc1a15ddb5bc009d3026f67802c /py/modules/IcePy/ImplicitContext.cpp | |
parent | More ICE_HOME fixes (diff) | |
download | ice-2b9fbb15c8f5b5af154bdffaf334e4b75a601e90.tar.bz2 ice-2b9fbb15c8f5b5af154bdffaf334e4b75a601e90.tar.xz ice-2b9fbb15c8f5b5af154bdffaf334e4b75a601e90.zip |
bug 2412: python bug with embedded nulls in strings
Diffstat (limited to 'py/modules/IcePy/ImplicitContext.cpp')
-rw-r--r-- | py/modules/IcePy/ImplicitContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modules/IcePy/ImplicitContext.cpp b/py/modules/IcePy/ImplicitContext.cpp index cec0805aaae..039ece7554c 100644 --- a/py/modules/IcePy/ImplicitContext.cpp +++ b/py/modules/IcePy/ImplicitContext.cpp @@ -178,7 +178,7 @@ implicitContextGet(ImplicitContextObject* self, PyObject* args) setPythonException(ex); return 0; } - return PyString_FromString(const_cast<char*>(val.c_str())); + return createString(val); } #ifdef WIN32 @@ -204,7 +204,7 @@ implicitContextPut(ImplicitContextObject* self, PyObject* args) setPythonException(ex); return 0; } - return PyString_FromString(const_cast<char*>(oldVal.c_str())); + return createString(oldVal); } #ifdef WIN32 @@ -229,7 +229,7 @@ implicitContextRemove(ImplicitContextObject* self, PyObject* args) setPythonException(ex); return 0; } - return PyString_FromString(const_cast<char*>(val.c_str())); + return createString(val); } static PyMethodDef ImplicitContextMethods[] = |