changeset: 95387:436bb7ad6349 branch: 3.4 parent: 95384:e54b23d7afa6 user: Victor Stinner date: Thu Apr 02 17:16:08 2015 +0200 files: Misc/NEWS Modules/socketmodule.c description: Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the result of sendto() instead of the C int type. diff -r e54b23d7afa6 -r 436bb7ad6349 Misc/NEWS --- a/Misc/NEWS Thu Apr 02 16:24:46 2015 +0200 +++ b/Misc/NEWS Thu Apr 02 17:16:08 2015 +0200 @@ -24,6 +24,9 @@ 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 #23838: linecache now clears the cache and returns an empty result on diff -r e54b23d7afa6 -r 436bb7ad6349 Modules/socketmodule.c --- a/Modules/socketmodule.c Thu Apr 02 16:24:46 2015 +0200 +++ b/Modules/socketmodule.c Thu Apr 02 17:16:08 2015 +0200 @@ -3366,7 +3366,8 @@ 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);