mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 03:49:01 +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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user