mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
pknlusr: use macro to define inet_ntop buffer size
POSIX provides a macro to define the minimum length required, so let's use it. Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:

committed by
Jan Engelhardt

parent
c3bd1c61d1
commit
b0a1aacd4b
@@ -47,7 +47,7 @@ int main(void)
|
||||
|
||||
while(1) {
|
||||
const char *ip;
|
||||
char ipbuf[48];
|
||||
char ipbuf[INET_ADDRSTRLEN];
|
||||
|
||||
memset(nlmsg, 0, nlmsg_size);
|
||||
status = recv(sock_fd, nlmsg, nlmsg_size, 0);
|
||||
|
Reference in New Issue
Block a user