X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/4af382cb5e0ef75e56002b07afcf5868e92393e6..23bff39b96e98bc1969d275bc7c43e1d6dd28429:/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: