~mdw
/
sgt
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a6cb3
)
Remember to terminate the prompt string in keyboard-interactive
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 29 Nov 2001 20:27:20 +0000
(20:27 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 29 Nov 2001 20:27:20 +0000
(20:27 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1425
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
3a02b12
..
baa811f
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-4155,6
+4155,8
@@
static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
ssh2_pkt_getstring(&prompt, &prompt_len);
strncpy(pwprompt, prompt, sizeof(pwprompt));
+ pwprompt[prompt_len < sizeof(pwprompt) ?
+ prompt_len : sizeof(pwprompt)-1] = '\0';
need_pw = TRUE;
echo = ssh2_pkt_getbool();