(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
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ uname (struct utsname *uname)
/* Fill in the hostname, which the proc server doesn't know. */ /* Fill in the hostname, which the proc server doesn't know. */
err = errno; err = errno;
if (__gethostname (uname.nodename, sizeof uname.nodename) < 0) if (__gethostname (uname->nodename, sizeof uname->nodename) < 0)
{ {
if (errno == ENAMETOOLONG) if (errno == ENAMETOOLONG)
/* Ignore the error of the buffer being too small. /* Ignore the error of the buffer being too small.