Fix off-by-one. From William Allen Simpson in PR 22012.
This commit is contained in:
parent
c94b972ba9
commit
ee8924aa2e
4
crypto/dist/ssh/moduli.5
vendored
4
crypto/dist/ssh/moduli.5
vendored
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: moduli.5,v 1.7 2003/04/03 06:21:33 itojun Exp $
|
||||
.\" $NetBSD: moduli.5,v 1.8 2003/07/04 21:56:48 wiz Exp $
|
||||
.\" $OpenBSD: moduli.5,v 1.7 2003/03/06 20:48:35 jmc Exp $
|
||||
.\"
|
||||
.\" Copyright 1997, 2000 William Allen Simpson <wsimpson@greendragon.com>
|
||||
@ -130,7 +130,7 @@ unused
|
||||
.El
|
||||
.Pp
|
||||
.Fa Size : decimal .
|
||||
Specifies the number of significant bits.
|
||||
Specifies the number of the most significant bit (0 to M).
|
||||
.Pp
|
||||
.Fa Generator : hex string .
|
||||
Specifies the best generator for a Diffie-Hellman exchange.
|
||||
|
4
crypto/dist/ssh/sshlogin.c
vendored
4
crypto/dist/ssh/sshlogin.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sshlogin.c,v 1.8 2002/12/06 03:39:13 thorpej Exp $ */
|
||||
/* $NetBSD: sshlogin.c,v 1.9 2003/07/04 21:56:48 wiz Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
@ -71,7 +71,7 @@ get_last_login_time(uid_t uid, const char *logname,
|
||||
|
||||
buf[0] = '\0';
|
||||
#ifdef SUPPORT_UTMPX
|
||||
if ((llxp = getlastlogx(uid, &llx)) != NULL) {
|
||||
if ((llxp = getlastlogx(_PATH_LASTLOGX, uid, &llx)) != NULL) {
|
||||
if (bufsize > sizeof(llxp->ll_host) + 1)
|
||||
bufsize = sizeof(llxp->ll_host) + 1;
|
||||
strncpy(buf, llxp->ll_host, bufsize - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user