mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Add and use BinarySource_*INIT_PL.
A great many BinarySource_BARE_INIT calls are passing the two halves of a ptrlen as separate arguments. It saves a lot of call-site faff to have a variant of the init function that just takes the whole ptrlen in one go.
This commit is contained in:
@ -17,7 +17,7 @@ int ssh1_censor_packet(
|
||||
ptrlen str;
|
||||
BinarySource src[1];
|
||||
|
||||
BinarySource_BARE_INIT(src, pkt.ptr, pkt.len);
|
||||
BinarySource_BARE_INIT_PL(src, pkt);
|
||||
|
||||
if (pls->omit_data &&
|
||||
(type == SSH1_SMSG_STDOUT_DATA ||
|
||||
|
Reference in New Issue
Block a user