]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Interchange two parameters in a printf, to prevent a silly segfault.
authorSimon Tatham <anakin@pobox.com>
Wed, 20 Nov 2002 19:56:10 +0000 (19:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 20 Nov 2002 19:56:10 +0000 (19:56 +0000)
[originally from svn r2235]

ssh.c

diff --git a/ssh.c b/ssh.c
index 2df71102c5f5ed55da669498e4724917314cf9f3..99721f85e2b1b49d2401ed227374e0c9392953e8 100644 (file)
--- 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,