summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2008-01-31 06:41:01 -0800
committerMark Spruiell <mes@zeroc.com>2008-01-31 06:41:01 -0800
commit2b9fbb15c8f5b5af154bdffaf334e4b75a601e90 (patch)
treea6a3a30cb56f7dc1a15ddb5bc009d3026f67802c /py/modules/IcePy/Communicator.cpp
parentMore ICE_HOME fixes (diff)
downloadice-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/Communicator.cpp')
-rw-r--r--py/modules/IcePy/Communicator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp
index 61c9051aa8f..23231208a50 100644
--- a/py/modules/IcePy/Communicator.cpp
+++ b/py/modules/IcePy/Communicator.cpp
@@ -489,7 +489,7 @@ communicatorProxyToString(CommunicatorObject* self, PyObject* args)
return 0;
}
- return PyString_FromString(const_cast<char*>(str.c_str()));
+ return createString(str);
}
#ifdef WIN32
@@ -577,7 +577,7 @@ communicatorIdentityToString(CommunicatorObject* self, PyObject* args)
return 0;
}
- return PyString_FromString(const_cast<char*>(str.c_str()));
+ return createString(str);
}
#ifdef WIN32