diff options
-rw-r--r-- | lib/addrfmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/addrfmt.c b/lib/addrfmt.c index ff615dd..bd468ef 100644 --- a/lib/addrfmt.c +++ b/lib/addrfmt.c | |||
@@ -79,3 +79,3 @@ _my_stpcpy (char **pbuf, size_t *psize, const char *src) | |||
79 | #define S_UN_NAME(sa, salen) \ | 79 | #define S_UN_NAME(sa, salen) \ |
80 | ((salen < offsetof (struct sockaddr_un,sun_path)) ? "" : (sa)->sun_path) | 80 | ((salen <= offsetof (struct sockaddr_un,sun_path)) ? "" : (sa)->sun_path) |
81 | 81 | ||
@@ -142,4 +142,4 @@ sockaddr_to_str (const struct sockaddr *sa, int salen, | |||
142 | struct sockaddr_un *s_un = (struct sockaddr_un *)sa; | 142 | struct sockaddr_un *s_un = (struct sockaddr_un *)sa; |
143 | if (S_UN_NAME(s_un, salen)[0] == 0) | 143 | if (S_UN_NAME (s_un, salen)[0] == 0) |
144 | len += _my_stpcpy (&bufptr, &buflen, "anonymous socket"); | 144 | len += _my_stpcpy (&bufptr, &buflen, "somebody"); |
145 | else | 145 | else |