From 1ba6bada67b2eca079b13f2deebff91696df909b Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 20 Aug 2001 19:06:36 +0000 Subject: It will always be a string, because it is created just before this call. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12