From 33b82b22614b29838e5118fbc4c04f1db22d431c Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 20 Nov 2002 19:56:10 +0000 Subject: [PATCH] Interchange two parameters in a printf, to prevent a silly segfault. git-svn-id: svn://svn.tartarus.org/sgt/putty@2235 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 2df71102..99721f85 100644 --- a/ssh.c +++ b/ssh.c @@ -1073,7 +1073,7 @@ static int ssh2_rdpkt(Ssh ssh, unsigned char **data, int *datalen) logevent(buf); sfree(buf); buf = dupprintf("Disconnection message text: %n%.*s", - msglen, &nowlen, ssh->pktin.data + 14); + &nowlen, msglen, ssh->pktin.data + 14); logevent(buf); bombout((ssh,"Server sent disconnect message\ntype %d (%s):\n\"%s\"", reason, -- 2.11.0