summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-20 19:06:36 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-20 19:06:36 (GMT)
commit1ba6bada67b2eca079b13f2deebff91696df909b (patch)
tree2588eb603bce9162ad724e460fe9fa8118e028d9 /Modules
parent31d833d575628ea6357f8d9510b272192689e3eb (diff)
downloadcpython-1ba6bada67b2eca079b13f2deebff91696df909b.zip
cpython-1ba6bada67b2eca079b13f2deebff91696df909b.tar.gz
cpython-1ba6bada67b2eca079b13f2deebff91696df909b.tar.bz2
It will always be a string, because it is created just before this call.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 525a19e..0917a31 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1471,7 +1471,7 @@ PySocketSock_recv(PySocketSockObject *s, PyObject *args)
if (buf == NULL)
return NULL;
Py_BEGIN_ALLOW_THREADS
- n = recv(s->sock_fd, PyString_AsString(buf), len, flags);
+ n = recv(s->sock_fd, PyString_AS_STRING(buf), len, flags);
Py_END_ALLOW_THREADS
if (n < 0) {
Py_DECREF(buf);