diff options
Diffstat (limited to 'src/rc/rc-wtmp.c')
-rw-r--r-- | src/rc/rc-wtmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-wtmp.c b/src/rc/rc-wtmp.c index 40cc280c..271ae7a6 100644 --- a/src/rc/rc-wtmp.c +++ b/src/rc/rc-wtmp.c @@ -43,8 +43,8 @@ void log_wtmp(const char *user, const char *id, pid_t pid, int type, strncpy(utmp.ut_id , id , sizeof(utmp.ut_id )); strncpy(utmp.ut_line, line, sizeof(utmp.ut_line)); - /* Put the OS version in place of the hostname */ - if (uname(&uname_buf) == 0) + /* Put the OS version in place of the hostname */ + if (uname(&uname_buf) == 0) strncpy(utmp.ut_host, uname_buf.release, sizeof(utmp.ut_host)); updwtmp(WTMP_FILE, &utmp); |