mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-22 10:00:14 +00:00
- markus@cvs.openbsd.org 2002/01/12 13:10:29
[auth-skey.c] undo local change
This commit is contained in:
parent
73f18346bc
commit
df224031ca
@ -149,6 +149,9 @@
|
||||
- markus@cvs.openbsd.org 2002/01/11 23:26:30
|
||||
[auth-skey.c]
|
||||
use snprintf; mouring@
|
||||
- markus@cvs.openbsd.org 2002/01/12 13:10:29
|
||||
[auth-skey.c]
|
||||
undo local change
|
||||
|
||||
|
||||
20020121
|
||||
@ -7297,4 +7300,4 @@
|
||||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.1765 2002/01/22 12:25:30 djm Exp $
|
||||
$Id: ChangeLog,v 1.1766 2002/01/22 12:25:46 djm Exp $
|
||||
|
@ -22,7 +22,7 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $");
|
||||
RCSID("$OpenBSD: auth-skey.c,v 1.16 2002/01/12 13:10:29 markus Exp $");
|
||||
|
||||
#ifdef SKEY
|
||||
|
||||
@ -60,7 +60,8 @@ skey_query(void *ctx, char **name, char **infotxt,
|
||||
|
||||
len = strlen(challenge) + strlen(PROMPT) + 1;
|
||||
p = xmalloc(len);
|
||||
snprintf(p, len, "%s%s", challenge, PROMPT);
|
||||
strlcpy(p, challenge, len);
|
||||
strlcat(p, PROMPT, len);
|
||||
(*prompts)[0] = p;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user