1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Fix format string mistakes revealed by new checking.

An assortment of errors: int vs size_t confusion (probably undetected
since the big switchover in commit 0cda34c6f), some outright spurious
parameters after the format string (copy-paste errors), a particularly
silly one in pscp.c (a comma between two halves of what should have
been a single string literal), and a _missing_ format string in ssh.c
(but luckily in a context where the only text that would be wrongly
treated as a format string was error messages generated elsewhere in
PuTTY).
This commit is contained in:
Simon Tatham
2020-01-26 15:00:13 +00:00
parent cbfba7a0e9
commit 247866a9d3
8 changed files with 11 additions and 9 deletions

2
ssh.c
View File

@ -562,7 +562,7 @@ void ssh_deferred_abort_callback(void *vctx)
Ssh *ssh = (Ssh *)vctx;
char *msg = ssh->deferred_abort_message;
ssh->deferred_abort_message = NULL;
ssh_sw_abort(ssh, msg);
ssh_sw_abort(ssh, "%s", msg);
sfree(msg);
}