Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the

result of sendto() instead of the C int type.
This commit is contained in:
Victor Stinner 2015-04-02 17:16:08 +02:00
parent e7c749238e
commit 8e44aa5ae4
2 changed files with 5 additions and 1 deletions

View file

@ -24,6 +24,9 @@ Core and Builtins
Library Library
------- -------
- Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
result of sendto() instead of the C int type.
- Issue #21526: Tkinter now supports new boolean type in Tcl 8.5. - Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.
- Issue #23838: linecache now clears the cache and returns an empty result on - Issue #23838: linecache now clears the cache and returns an empty result on

View file

@ -3366,7 +3366,8 @@ sock_sendto(PySocketSockObject *s, PyObject *args)
char *buf; char *buf;
Py_ssize_t len, arglen; Py_ssize_t len, arglen;
sock_addr_t addrbuf; sock_addr_t addrbuf;
int addrlen, n = -1, flags, timeout; int addrlen, flags, timeout;
Py_ssize_t n = -1;
flags = 0; flags = 0;
arglen = PyTuple_Size(args); arglen = PyTuple_Size(args);