1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 00:40:26 +00:00

Had an extra plen definition, removed.

This commit is contained in:
llmII 2021-09-07 17:03:34 -05:00
parent 077bf5ebae
commit bf2928805e
No known key found for this signature in database
GPG Key ID: E3AD2E259F58A9A0

View File

@ -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;