1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 15:24:49 -05:00

Interchange two parameters in a printf, to prevent a silly segfault.

[originally from svn r2235]
This commit is contained in:
Simon Tatham 2002-11-20 19:56:10 +00:00
parent 57d1921d04
commit 75ebfa28f0

2
ssh.c
View File

@ -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,