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

Extra inline helpers seat_{stdout,stderr}_pl.

These take a ptrlen in place of separate buffer and length arguments.
Switched over to them in lots of places.
This commit is contained in:
Simon Tatham
2019-03-07 10:17:08 +00:00
parent 71a3e7da9e
commit 5eb6c19047
7 changed files with 12 additions and 8 deletions

2
ssh.c
View File

@ -715,7 +715,7 @@ static const char *connect_to_host(
* behave in quite the usual way. */
const char *msg =
"Reusing a shared connection to this server.\r\n";
seat_stderr(ssh->seat, msg, strlen(msg));
seat_stderr_pl(ssh->seat, ptrlen_from_asciz(msg));
}
} else {
/*