--- ./nsock/include/nsock.h.orig Mon Nov 12 20:44:37 2012 +++ ./nsock/include/nsock.h Mon Dec 24 13:22:13 2012 @@ -81,7 +81,7 @@ #ifndef SUN_LEN #include -# define SUN_LEN(ptr) (sizeof(*(ptr)) - sizeof((ptr)->sun_path)) \ +# define SUN_LEN(ptr) ((sizeof(*(ptr)) - sizeof((ptr)->sun_path)) \ + strlen ((ptr)->sun_path)) #endif #endif /* HAVE_SYS_UN_H */