summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-02 15:16:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-04-02 15:16:08 (GMT)
commit8e44aa5ae475be3e2944daee4d98ca36e466dd6a (patch)
tree29201255c6f27a63355ac12f348d74961daa03de /Modules
parente7c749238e8fe2a10248ae9d81b1e53153496a8d (diff)
downloadcpython-8e44aa5ae475be3e2944daee4d98ca36e466dd6a.zip
cpython-8e44aa5ae475be3e2944daee4d98ca36e466dd6a.tar.gz
cpython-8e44aa5ae475be3e2944daee4d98ca36e466dd6a.tar.bz2
Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
result of sendto() instead of the C int type.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e9e482e..b6f2bf5 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3366,7 +3366,8 @@ sock_sendto(PySocketSockObject *s, PyObject *args)
char *buf;
Py_ssize_t len, arglen;
sock_addr_t addrbuf;
- int addrlen, n = -1, flags, timeout;
+ int addrlen, flags, timeout;
+ Py_ssize_t n = -1;
flags = 0;
arglen = PyTuple_Size(args);