Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 19401:8607bc890b1f legacy-trunk
It will always be a string, because it is created just before this call.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Mon, 20 Aug 2001 19:06:36 +0000 |
| parents | 1afc3116c602 |
| children | 0928cd62ddea |
line wrap: on
line diff
--- a/Modules/socketmodule.c Mon Aug 20 18:49:00 2001 +0000 +++ b/Modules/socketmodule.c Mon Aug 20 19:06:36 2001 +0000 @@ -1471,7 +1471,7 @@ 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);
