summaryrefslogtreecommitdiff
path: root/utils/login.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-16 20:00:35 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-16 20:00:35 +0000
commit88179a43127e2ea3229fff9bdbf08b8932906b1a (patch)
tree92b63cab11f7059e6d2fbfd3db22ce6b1f41f42d /utils/login.c
parentac733c0f74caa68b1800c1a1d177575cd1fd1436 (diff)
Wed Apr 16 15:59:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* login.c (add_utmp_entry): Revert change of December 10, 1996.
Diffstat (limited to 'utils/login.c')
-rw-r--r--utils/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/login.c b/utils/login.c
index cf6de37b..13e1cfee 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -190,13 +190,13 @@ add_utmp_entry (char *args, unsigned args_len, int inherit_host)
if (! host)
host = old_utmp->ut_host;
if (! addr)
- addr = old_utmp->ut_addr[0];
+ addr = old_utmp->ut_addr;
}
}
}
strncpy (utmp.ut_host, host ?: "", sizeof (utmp.ut_host));
- utmp.ut_addr[0] = addr;
+ utmp.ut_addr = addr;
login (&utmp);
}