Use the t# format where appropriate. Greg Stein.

This commit is contained in:
Guido van Rossum 1998-10-08 02:25:24 +00:00
parent b317f8aa0d
commit 7e48898d86
9 changed files with 34 additions and 37 deletions

View file

@ -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,