Skip to content

Commit 666381a

Browse files
committed
fix ssl truncate bug
1 parent b64fdd7 commit 666381a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/src/ssl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ mod _ssl {
14041404
let ret = match inner_buffer {
14051405
Either::A(_buf) => vm.ctx.new_int(count).into(),
14061406
Either::B(mut buf) => {
1407-
buf.truncate(n);
1407+
buf.truncate(count);
14081408
buf.shrink_to_fit();
14091409
vm.ctx.new_bytes(buf).into()
14101410
}

0 commit comments

Comments
 (0)