X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d8d81d1b049836f7d4fae7b0077a8ce9e2fc43ac..5660ad956829d56c168b64839540d9f17476fcce:/fdutils.pyx diff --git a/fdutils.pyx b/fdutils.pyx index c6ba79e..0236caf 100644 --- a/fdutils.pyx +++ b/fdutils.pyx @@ -50,7 +50,7 @@ def fdrecv(sock, unsigned size): cdef int len cdef PyObject *obj cdef int fd - buf = PyString_FromStringAndSize(NULL, len) + buf = PyString_FromStringAndSize(NULL, size) p = PyString_AS_STRING(buf) len = fdpass_recv(_getfd(sock), &fd, p, size) if len < 0: