mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Use the t# format where appropriate. Greg Stein.
This commit is contained in:
parent
b317f8aa0d
commit
7e48898d86
9 changed files with 34 additions and 37 deletions
|
@ -472,7 +472,7 @@ getsockaddrarg,PySocketSockObject *,s, PyObject *,args, struct sockaddr **,addr_
|
|||
char *path;
|
||||
int len;
|
||||
addr = (struct sockaddr_un* )&(s->sock_addr).un;
|
||||
if (!PyArg_Parse(args, "s#", &path, &len))
|
||||
if (!PyArg_Parse(args, "t#", &path, &len))
|
||||
return 0;
|
||||
if (len > sizeof addr->sun_path) {
|
||||
PyErr_SetString(PySocket_Error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue