Interchange two parameters in a printf, to prevent a silly segfault.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 20 Nov 2002 19:56:10 +0000 (19:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 20 Nov 2002 19:56:10 +0000 (19:56 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2235 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 2df7110..99721f8 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,