changeset: 95386:29c32ca46652 branch: 2.7 parent: 95383:d81d6f274d60 user: Victor Stinner date: Thu Apr 02 17:19:17 2015 +0200 files: Misc/NEWS Modules/socketmodule.c description: Issue #23834: Fix socket.sendto(), use the C long type to store the result of sendto() instead of the C int type. diff -r d81d6f274d60 -r 29c32ca46652 Misc/NEWS --- a/Misc/NEWS Thu Apr 02 15:59:13 2015 +0200 +++ b/Misc/NEWS Thu Apr 02 17:19:17 2015 +0200 @@ -21,6 +21,9 @@ Library ------- +- Issue #23834: Fix socket.sendto(), use the C long 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 d81d6f274d60 -r 29c32ca46652 Modules/socketmodule.c --- a/Modules/socketmodule.c Thu Apr 02 15:59:13 2015 +0200 +++ b/Modules/socketmodule.c Thu Apr 02 17:19:17 2015 +0200 @@ -2901,7 +2901,8 @@ char *buf; Py_ssize_t len; sock_addr_t addrbuf; - int addrlen, n = -1, flags, timeout; + int addrlen, flags, timeout; + long n = -1; int arglen; flags = 0;