mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Had an extra plen definition, removed.
This commit is contained in:
parent
077bf5ebae
commit
bf2928805e
@ -744,7 +744,6 @@ static Janet janet_so_getname(const struct sockaddr_storage *ss, socklen_t slen)
|
||||
if (slen > offsetof(struct sockaddr_un, sun_path)) {
|
||||
struct sockaddr_un *sun = (struct sockaddr_un *)ss;
|
||||
char *pe = (char *)sun + SO_MIN(sizeof * sun, slen);
|
||||
size_t plen;
|
||||
|
||||
while (pe > sun->sun_path && pe[-1] == '\0')
|
||||
--pe;
|
||||
|
Loading…
Reference in New Issue
Block a user