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:
parent
57d1921d04
commit
75ebfa28f0
2
ssh.c
2
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user