From 75ebfa28f0d1824d1631a31f04780ba2a696773a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 20 Nov 2002 19:56:10 +0000 Subject: [PATCH] Interchange two parameters in a printf, to prevent a silly segfault. [originally from svn r2235] --- 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,