mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Fixed SUN_LEN definition in nsock.h.
Added missing parenthesis to nsock's SUN_LEN for platforms where the macro isn't defined. Report and patch by Conor McCarthy
This commit is contained in:
parent
f8da38fab5
commit
b6765c03fa
1 changed files with 2 additions and 2 deletions
|
|
@ -84,8 +84,8 @@
|
|||
|
||||
#ifndef SUN_LEN
|
||||
#include <string.h>
|
||||
# define SUN_LEN(ptr) (sizeof(*(ptr)) - sizeof((ptr)->sun_path)) \
|
||||
+ strlen ((ptr)->sun_path))
|
||||
#define SUN_LEN(ptr) ((sizeof(*(ptr)) - sizeof((ptr)->sun_path)) \
|
||||
+ strlen((ptr)->sun_path))
|
||||
#endif
|
||||
#endif /* HAVE_SYS_UN_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue