mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
(uname): Deref UNAME to get nodename.
This commit is contained in:
parent
ed30638ace
commit
e894c64677
@ -30,7 +30,7 @@ uname (struct utsname *uname)
|
||||
|
||||
/* Fill in the hostname, which the proc server doesn't know. */
|
||||
err = errno;
|
||||
if (__gethostname (uname.nodename, sizeof uname.nodename) < 0)
|
||||
if (__gethostname (uname->nodename, sizeof uname->nodename) < 0)
|
||||
{
|
||||
if (errno == ENAMETOOLONG)
|
||||
/* Ignore the error of the buffer being too small.
|
||||
|
Loading…
x
Reference in New Issue
Block a user