~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fdutils.pyx, str.pyx: Fix some stupid bugs.
[mLib-python]
/
fdutils.pyx
diff --git
a/fdutils.pyx
b/fdutils.pyx
index
c6ba79e
..
0236caf
100644
(file)
--- 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: