Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9a1dcb4
Commit
e9a1dcb4
authored
Mar 20, 2019
by
Inada Naoki
Committed by
GitHub
Mar 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-8677: use PY_SSIZE_T_CLEAN in socketmodule.c (GH-12467)
parent
c5a216e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Modules/socketmodule.c
Modules/socketmodule.c
+2
-1
No files found.
Modules/socketmodule.c
View file @
e9a1dcb4
...
@@ -99,6 +99,7 @@ Local naming conventions:
...
@@ -99,6 +99,7 @@ Local naming conventions:
# pragma weak inet_aton
# pragma weak inet_aton
#endif
#endif
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "Python.h"
#include "structmember.h"
#include "structmember.h"
...
@@ -1414,7 +1415,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
...
@@ -1414,7 +1415,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
a
->
sll_pkttype
,
a
->
sll_pkttype
,
a
->
sll_hatype
,
a
->
sll_hatype
,
a
->
sll_addr
,
a
->
sll_addr
,
a
->
sll_halen
);
(
Py_ssize_t
)
a
->
sll_halen
);
}
}
#endif
/* HAVE_NETPACKET_PACKET_H && SIOCGIFNAME */
#endif
/* HAVE_NETPACKET_PACKET_H && SIOCGIFNAME */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment