svn commit: r202111 - user/ed/utmpx/crypto/openssh
Ed Schouten
ed at FreeBSD.org
Mon Jan 11 20:23:17 UTC 2010
Author: ed
Date: Mon Jan 11 20:23:17 2010
New Revision: 202111
URL: http://svn.freebsd.org/changeset/base/202111
Log:
Also use MIN_SIZEOF() for the line name inside the lastlog code.
The use of MIN_SIZEOF() doesn't seem to be used consistenly throughout
the code.
Modified:
user/ed/utmpx/crypto/openssh/loginrec.c
Modified: user/ed/utmpx/crypto/openssh/loginrec.c
==============================================================================
--- user/ed/utmpx/crypto/openssh/loginrec.c Mon Jan 11 20:07:24 2010 (r202110)
+++ user/ed/utmpx/crypto/openssh/loginrec.c Mon Jan 11 20:23:17 2010 (r202111)
@@ -1567,9 +1567,10 @@ lastlog_get_entry(struct logininfo *li)
memset(&l, '\0', sizeof(l));
ll = &l;
}
- line_fullname(li->line, ll->ll_line, sizeof(li->line));
+ line_fullname(li->line, ll->ll_line,
+ MIN_SIZEOF(li->line, ll->ll_line));
strlcpy(li->hostname, ll->ll_host,
- MIN_SIZEOF(li->hostname, ll->ll_host));
+ MIN_SIZEOF(li->hostname, ll->ll_host));
li->tv_sec = ll->ll_tv.tv_sec;
li->tv_usec = ll->ll_tv.tv_usec;
return (1);
More information about the svn-src-user
mailing list