diff options
Diffstat (limited to 'sysdeps/mach/hurd/getsockname.c')
-rw-r--r-- | sysdeps/mach/hurd/getsockname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/getsockname.c b/sysdeps/mach/hurd/getsockname.c index f99bb52905..4e6c517931 100644 --- a/sysdeps/mach/hurd/getsockname.c +++ b/sysdeps/mach/hurd/getsockname.c @@ -47,7 +47,7 @@ __getsockname (fd, addrarg, len) if (*len > buflen) *len = buflen; - + if (buf != (char *) addr) { memcpy (addr, buf, *len); |