mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +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)) {
|
if (slen > offsetof(struct sockaddr_un, sun_path)) {
|
||||||
struct sockaddr_un *sun = (struct sockaddr_un *)ss;
|
struct sockaddr_un *sun = (struct sockaddr_un *)ss;
|
||||||
char *pe = (char *)sun + SO_MIN(sizeof * sun, slen);
|
char *pe = (char *)sun + SO_MIN(sizeof * sun, slen);
|
||||||
size_t plen;
|
|
||||||
|
|
||||||
while (pe > sun->sun_path && pe[-1] == '\0')
|
while (pe > sun->sun_path && pe[-1] == '\0')
|
||||||
--pe;
|
--pe;
|
||||||
|
Loading…
Reference in New Issue
Block a user