Ian Dowse 1a154a146c Extract the path from an AF_LOCAL sockaddr_un in a way that correctly
terminates the string in all cases, based on code from netstat(1).
The path in a sockaddr_un is terminated either by a '\0', or by
the end of the sockaddr as defined by sun_len.

Previously, the code could write the "safety" '\0' beyond the end
of the sockaddr (sockaddr_un's need only be large enough to store
sun_len bytes), and writing into the the supplied sockaddr is bad
anyway.
2001-05-12 20:05:26 +00:00
..
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-05-03 15:12:52 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-18 13:16:47 +00:00
2001-04-27 08:16:57 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-18 15:54:10 +00:00