mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
tls: update finishRead2 for new @memcpy semantics
This commit is contained in:
parent
e02a592437
commit
ffccd70671
@ -1233,7 +1233,7 @@ fn finishRead2(c: *Client, first: []const u8, frag1: []const u8, out: usize) usi
|
||||
c.partial_cleartext_idx = 0;
|
||||
c.partial_ciphertext_idx = 0;
|
||||
c.partial_ciphertext_end = @intCast(@TypeOf(c.partial_ciphertext_end), first.len + frag1.len);
|
||||
@memcpy(c.partially_read_buffer[0..first.len], first);
|
||||
std.mem.copyForwards(u8, c.partially_read_buffer[0..first.len], first);
|
||||
@memcpy(c.partially_read_buffer[first.len..][0..frag1.len], frag1);
|
||||
}
|
||||
return out;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user