svn commit: r201683 - user/ed/utmpx/crypto/openssh
Ed Schouten
ed at FreeBSD.org
Wed Jan 6 22:19:58 UTC 2010
Author: ed
Date: Wed Jan 6 22:19:57 2010
New Revision: 201683
URL: http://svn.freebsd.org/changeset/base/201683
Log:
The size argument needs to be the size of the destination buffer.
Modified:
user/ed/utmpx/crypto/openssh/loginrec.c
Modified: user/ed/utmpx/crypto/openssh/loginrec.c
==============================================================================
--- user/ed/utmpx/crypto/openssh/loginrec.c Wed Jan 6 22:15:26 2010 (r201682)
+++ user/ed/utmpx/crypto/openssh/loginrec.c Wed Jan 6 22:19:57 2010 (r201683)
@@ -1626,7 +1626,7 @@ utmpx_get_entry(struct logininfo *li)
return (0);
}
- line_fullname(li->line, utx->ut_line, sizeof(utx->ut_line));
+ line_fullname(li->line, utx->ut_line, sizeof(li->line));
strlcpy(li->hostname, utx->ut_host,
MIN_SIZEOF(li->hostname, utx->ut_host));
li->tv_sec = utx->ut_tv.tv_sec;
More information about the svn-src-user
mailing list