1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

(uname): Deref UNAME to get nodename.

This commit is contained in:
Miles Bader
1996-07-21 02:33:13 +00:00
parent ed30638ace
commit e894c64677

View File

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