Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
} else if ( (NULL != ut)
&& ('\0' != ut->ut_host[0])) {
hostname = XMALLOC(SIZEOF_ARRAY(ut->ut_host) + 1, char);
- zustr2stp(hostname, ut->ut_host, SIZEOF_ARRAY(ut->ut_host));
+ ZUSTR2STP(hostname, ut->ut_host);
#endif /* HAVE_STRUCT_UTMP_UT_HOST */
}
char user[sizeof (ut->ut_user) + 1];
time_t now;
- zustr2stp(user, ut->ut_user, SIZEOF_ARRAY(ut->ut_user));
+ ZUSTR2STP(user, ut->ut_user);
(void) time (&now);
kill (-ut->ut_pid, SIGKILL);
}
- zustr2stp(user, ut->ut_user, SIZEOF_ARRAY(ut->ut_user));
+ ZUSTR2STP(user, ut->ut_user);
SYSLOG ((LOG_NOTICE,
"logged off user '%s' on '%s'", user,