Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2010 22:19:58 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r201683 - user/ed/utmpx/crypto/openssh
Message-ID:  <201001062219.o06MJw24056624@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001062219.o06MJw24056624>