1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +00:00

Put brackets on PEER_STR_LEN.

Maybe we'll decide to add these; anyway more space doesn't hurt.
This commit is contained in:
david
2012-11-12 20:44:46 +00:00
parent cc4eb9f381
commit f5ac3e9f4e

View File

@@ -80,7 +80,7 @@
#if HAVE_SYS_UN_H
#define PEER_STR_LEN sizeof(((struct sockaddr_un *) 0)->sun_path)
#else
#define PEER_STR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255:xxxxx")
#define PEER_STR_LEN sizeof("[ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255]:xxxxx")
#endif
/* Maximize the number of file descriptors (including sockets) allowed for this