From 599c381ea22ed9712d15fc3b912b850d3973af97 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 8 Aug 1995 22:03:52 +0000 Subject: [PATCH] Pass correct argument to getutmpx() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6469 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 4 ++++ src/util/pty/update_utmp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index a893b5e06..bf5a2d949 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,7 @@ + +Tue Aug 8 17:24:27 EDT 1995 Paul Park (pjpark@mit.edu) + * update_utmp.c - getutmpx() requires address of utmpx structure. + Mon Aug 7 17:41:39 1995 Sam Hartman * cleanup.c (pty_cleanup): Call pty_update_utmp using new interface. diff --git a/src/util/pty/update_utmp.c b/src/util/pty/update_utmp.c index b80d075eb..30b317067 100644 --- a/src/util/pty/update_utmp.c +++ b/src/util/pty/update_utmp.c @@ -114,7 +114,7 @@ long pty_update_utmp (process_type, pid, username, line, host) #ifdef HAVE_SETUTXENT setutxent(); - getutmpx(ent, &utx); + getutmpx(&ent, &utx); pututxline(&utx); endutxent(); #endif /* HAVE_SETUTXENT */ -- 2.26.2